I want to stop ntpd on all domU and openvz virtual machines while enabling
it on all dom0 and physical machines.
I've been trying to get my head around this and searched through
documentation and examples but cannot find anything like this so far.
If its running Debian Sarge then the init script is /etc/init.d/ntp-server
If its running Etch or Lenny then its /etc/init.d/ntp
I'd thought that the "name" variable of 'service' was supposed to indicate
this? Or have I got my conditionals way wrong? Because the code I've
included doesn't seem to do anything at all. Not even a syntax error...
class services {
service { "ntp_service":
name => $lsbdistcodename ? {
'sarge' => "ntp-server",
'etch' => "ntp",
'lenny' => "ntp",
},
case $virtual {
'xenu','openvz':
{
ensure => stopped,
enable => false,
pattern => "ntpd"
}
'xen0','physical':
{
ensure => running,
enable => true,
pattern => "ntpd"
}
}
}
}
--
Please remember that an email is just like a postcard; it is not
confidential nor private nor secure and can be read by many other people
than the intended recipient. A postcard can be read by anyone at the mail
sorting office and expecting what is written on it to be private and secret
is not realistic. Please hold no higher expectation of email.
If you need to send confidential information in an email you need to use
encryption. PGP is Pretty good for this.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---