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:
parent
b94e292457
commit
2df532deaa
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue