puppet: Ensure supervisord starts on boot with systemd.

This is important to ensure that Zulip comes up properly after a
reboot on Ubuntu Xenial.
This commit is contained in:
Tim Abbott 2016-08-22 23:18:07 -07:00
parent 4bfac78303
commit 750e43518f
1 changed files with 7 additions and 0 deletions

View File

@ -39,4 +39,11 @@ class zulip::supervisor {
source => "puppet:///modules/zulip/supervisor/supervisord.conf", source => "puppet:///modules/zulip/supervisor/supervisord.conf",
notify => Service["supervisor"], notify => Service["supervisor"],
} }
if $zulip::base::release_name == "xenial" {
exec {"enable supervisor":
unless => "systemctl is-enabled supervisor",
command => "systemctl enable supervisor",
}
}
} }