Hi All,
I am using vms on gogrid and rackspace completely. I am decent but still
learning puppet. The biggest problem with vms, especially where I cant
control the Host is ntp time and date sync to be good.
Here is my config to sync ntp. Please dont tailor my code just help me fix
the problem. This code works 99% of the servers its on except for 2 centos
5 machines.
class base {
class { 'timezone':
timezone => 'PST8PDT',
ensure => present,
autoupgrade => true,
}
package { 'ntp':
ensure => installed,
}
service { 'ntpd':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
}
node default {
include base
}
Now when I run puppet agent on these 2 specific vms, it "looks" fine and
completes, updates whatever. Well when you run command: *date* it doesnt
fix the date as it should. I was wondering, is there a way to have puppet
check that *date* command displays the correct time for that timezone. My
timezone is Los Angeles/ PDT/ PST.
I want puppet when completing the run to verify that the time is what PST
timezone should be and if not, to alert me or something so I know. We have
had it work a few times but of course, stupid vms fail to keep the time
perfect. This is why I would like the check. If not worth doing or possible
in Puppet, any Nagios plugins good for this that you have set up before? or
any other solution?
FYI, *class timezone* is a template I got for ntp and seems to update
tzdata.
Thanks in advance,
Tony.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.