Merge "Add Xenial support"

This commit is contained in:
Zuul 2018-07-21 13:37:57 +00:00 committed by Gerrit Code Review
commit 2818d122ea
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@ class gerritbot(
source => 'puppet:///modules/gerritbot/gerritbot.init',
}
if versioncmp($::operatingsystemmajrelease, '16.04') >= 0 {
exec { 'gerritbot-systemd-daemon-reload':
command => '/bin/systemctl daemon-reload',
before => Service['gerritbot'],
subscribe => File['/etc/init.d/gerritbot'],
refreshonly => true,
}
}
service { 'gerritbot':
ensure => running,
enable => true,