Fix operatingsystem major release fact name

There is no such default fact as 'operatingsystemmajversion'. On puppet
3, this would not raise an error, but on puppet 4 this causes an error
when used in the versioncmp function which expects a string and not
undef. The correct name of the fact is 'operatingsystemmajrelease'.

Change-Id: Iafc4554cffd4a5406535e00e158af7bd04ca2f13
This commit is contained in:
Colleen Murphy 2018-04-26 20:37:09 +02:00
parent b94e292457
commit 2df532deaa
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
#
class zuul::systemd_reload(
) {
if versioncmp($::operatingsystemmajversion, '16.04') >= 0 and ! defined(Exec['systemctl-daemon-reload']) {
if versioncmp($::operatingsystemmajrelease, '16.04') >= 0 and ! defined(Exec['systemctl-daemon-reload']) {
exec {'systemctl-daemon-reload':
command => 'systemctl daemon-reload',
path => '/bin:/usr/bin',