I am writing my first module for ntp, I have a few different versions
of Linux and also releases. The code worked when I only had one flavor
of Linux but now I have four and possibly more flavors. My snippet
that doesn't work is as follows; ( I am not even sure this is the
route I should be going if anyone has a better way please advise.
Thank you in advance)
$ntp_service = $ntpdaemon {
case operatingsystem {
'CentOS' {
case operatingsystemrelease {
'5.5' => "ntpd",
'6.0' => "ntpd"
}
}
'RedHat' {
case operatingsystemrelease {
'5.5' => "ntpd",
'6.0' => "ntpd"
}
}
'SLES' {
case operatingsystemrelease {
'10.1' => "ntp",
'10.2' => "ntp",
'10.3' => "ntp",
'11.0' => "ntp",
'11.1' => "ntp"
}
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.