Ah ok I see, I thought as a test to manage the puppet client first would be a good thing,
thank your for your answer, then I will go with something like ntp for a test. cu stefanero On 24 Mrz., 04:16, Denmat <tu2bg...@gmail.com> wrote: > Hi, > > If you try to restart the client during the update, won't that confuse puppet > a bit? > > Dont subscribe puppet.conf to the service. I'm not sure whether puppet > re-reads changes to it's config files before it does a run (I think it does), > but I'm sure what you're trying to do won't work. > > Cheers > > On 24/03/2011, at 3:46, stefanero <stefan...@gmail.com> wrote: > > > > > > > > > Hello, > > > I am farly new to puppet and wanted to start configure a couple of my > > servers. > > > I started to write a little test manifest and tryed to update the > > puppet client configuration as a test. > > > This is my site.pp > > --------------------------------------------------------------------------- > > -- > > #set fileserver to get files from > > $fileserver = "puppet.hugoboss.com" > > > #import different manifets / modules get loaded by default > > import "puppetclient.pp" > > > # all hosts get these actions > > node default { > > include puppetclient > > } > > --------------------------------------------------------------------------- > > -- > > > and this is the included puppetclient.pp > > cat puppetclient.pp > > > --------------------------------------------------------------------------- > > -- > > #create puppet directory for loggin etc, this is default for all > > clients > > #also copy our puppet config files first, when done restart service > > and continoue > > > class puppetclient { > > > package { > > facter: > > ensure => installed; > > puppet: > > ensure => installed; > > } > > > file { > > "/var/lib/puppet": > > ensure => directory, > > owner => "puppet", > > group => "puppet", > > mode => 0644; > > "puppet.conf": > > owner => "root", > > path => "/etc/puppet/puppet.conf", > > source => "puppet://$fileserver/files/puppet-agent.conf"; > > "auth.conf": > > owner => "root", > > path => "/etc/puppet/auth.conf", > > source => "puppet://$fileserver/files/auth-agent.conf"; > > "namespaceauth.conf": > > owner => "root", > > path => "/etc/puppet/namespaceauth.conf", > > source => "puppet://$fileserver/files/namespaceauth-agent.conf"; > > } > > > service { > > puppet: > > ensure => true, > > enable => true, > > subscribe => [File["puppet.conf"], File["auth.conf"], > > File["namespaceauth.conf"], Package[puppet] ] > > } > > > } > > > --------------------------------------------------------------------------- > > -- > > > As you can tell, I guess nothing special. > > > All files get transfered to the client, but when I change a file for > > example the puppet.conf I get in the syslog a msg > > > Mar 23 17:35:26 test-box puppet-agent[32527]: Could not run Puppet > > configuration client: SIGQUIT > > > Also the new configuration is not applied. I changed the "runinterval" > > value from 180 sec to 20 sec, but still only every 30min I see a > > connect. > > This only works if I manually do a > > > /etc/init.d/puppet restart > > > I am running a opensuse 11.3 x86 and build the RPM myself using the > > puppet specfile present in the tarbal. > > > Can anyone help me out what I am missing? > > > Thank you very much > > stefanero > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.