In this demo, we're going to address both notifications and schedules.
We will set up a notification to send an email and also a
playbook schedule to run at specific intervals.
So on the left‑hand side under ADMINISTRATION section, we have a section called
Notifications, which opens up a new notification template.
And here, you can see the different notification types.
For example, we have Email, Grafana, IRC, and Pagerduty.
These are the different notification types that can
be alerted. So for this demo,
we'll be testing with email, and here we can
configure those notification settings.
We have the name of notification, we select the organization that this
notification belongs to, and also the type of email. We will also specify the
username to send the notification to, and the host of the email server. As
this is a demo, I'm just going to put in a dummy host. Then we have a
recipient list and the sender email, and we can also configure specific
settings such as an email port of port 25.
We also have a more advanced email options with TLS. If you want,
you can further customize messages if you want to have something specific to
say in the email, and we can set this up in the notification. Once you're
happy with the settings, you can click on SAVE, and then we can go back to
the RESOURCES section and under that Template, you will notice that we have a
notification section, and this will list the notification that we have just
created. Now we can select what to happen for this notification, so, when a
job is started or when we have a success or failure, and you can turn on all
of these, or if you want there, just have a notification when there's a
failure, for example. For this demo, I will turn them all on and I'll have a
notification for a start, success, and failure.
Next, we're going to have a quick look at scheduling.
So in the RESOURCES, we go to Templates and select the
template that we want to schedule on. Here we're going to
put in the heading for the schedule.
You'll notice under schedule we can see that we've just added a schedule.
Here we can fill out such details such as a start date.
You can also select this from the calendar, so it's quite
easy for a non‑technical person to set up.
We'll also select the time details, such as the start
time, along with the time zone.
I will also set up the repeat frequency, which in my case is going to be
1 hour, and with the schedule, probably we'll want to have an end to a
schedule, so here I will just set this to end on a specific date, but I
won't bother to have an end time.
But on the left‑hand side at the bottom, you can see now that we've got a
configuration of the entire schedule that we've just configured. If you
want, we can also have additional variables, and we can see this when we
select the PROMPT selection, and notice that this pulls up the survey
that we initially created.