Automate email notifications

asked 2016-07-01 03:25:02 -0500

venky gravatar image

I am using puppet Enterprise and developed a puppet module to do code deployment. But some pre and post deployment steps not automated.

Use case1: I have server scheduling a 1hr downtime activity before 2 weeks. So my tool should send notification email 3 times i.e 1 week before activity, 1 day before activity and 1 hr before activity to users. At present i am sending manual notification emails is it possible to automate with puppet ?

Use Case2: For the same activity i have to open a ticket before activity starts and close ticket after activity. My ticketing tool supports REST API. Is it possible to automate this with puppet like opening and closing tickers by calling REST Api ?

edit retag flag offensive close merge delete


How do you orchestrate the actual deployment? A manual Puppet run?

Alex Harvey gravatar imageAlex Harvey ( 2016-07-03 08:55:17 -0500 )edit

When i want code deployment i will run puppet manually, by default daemonize = false at agent. So code deployment runs steps like send notification emails before activity (code upgrade) , open & closes RFC tickets by calling REST APIs.

venky gravatar imagevenky ( 2016-07-03 23:04:22 -0500 )edit

I don't follow your requirement. How can any automation tool "know" that there is going to be a manually scheduled downtime in 2 weeks?

Alex Harvey gravatar imageAlex Harvey ( 2016-07-04 00:36:29 -0500 )edit

I will use scheduler and cron types in puppet. Inside node class i will add start and end timings of downtime. Will puppet supports sending email (downtime notification email templates). ? To open RFC tickets will puppet calls REST URLS?

venky gravatar imagevenky ( 2016-07-04 05:34:33 -0500 )edit