Denny
2014-Mar-04 10:07 UTC
[Puppet Users] puppet applying wrong/old configuration to client
Hi all, I'm pretty new to puppet and couldn't find any solution yet. Right now I have seven hosts managed via puppet. Four of them are kinda broken since yesterday. They are using an old/cached(?) configuration. My current node definition looks like: node /^host\d+\.domain\.local$/ { include nrpe include bashrc include motd include crontab include anacrontab class { 'yum': extrarepo => [ 'epel', 'puppetlabs' ], } class { 'resolv_conf': searchpath => 'domain.local', nameservers => [ '1.2.3.4', '1.2.3.5' ], } class { 'rsyslog': syslogserver => 'graylog.domain.local', syslogport => '12501', } } Actually my node is applying an old definition (with ntp and postfix, which I removed for testing purposes): root@host01 /var/lib/puppet # /etc/init.d/ntpd stop Shutting down ntpd: [ OK ] root@host01 /var/lib/puppet # rm /etc/postfix/main.cf rm: remove regular file `/etc/postfix/main.cf'? y root@host01 /var/lib/puppet # puppet agent --test Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb Info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb Info: Caching catalog for host01.domain.local Info: Applying configuration version '1393926479' Notice: /Stage[main]/Postfix/File[/etc/postfix/main.cf]/ensure: defined content as '{md5}49b648101b0e361231a977aa89e0dd60' Info: /Stage[main]/Postfix/File[/etc/postfix/main.cf]: Scheduling refresh of Service[postfix] Info: /Stage[main]/Postfix/File[/etc/postfix/main.cf]: Scheduling refresh of Service[postfix] Notice: /Stage[main]/Postfix/Service[postfix]: Triggered 'refresh' from 2 events Notice: /Stage[main]/Ntp::Service/Service[ntp]/ensure: ensure changed 'stopped' to 'running' Info: /Stage[main]/Ntp::Service/Service[ntp]: Unscheduling refresh on Service[ntp] Notice: Finished catalog run in 11.03 seconds root@host01 /var/lib/puppet # What I did until now: - restarted puppet master (apache/passenger) - removed and re-added host01 to puppet (with server restart in between) - removed puppet package and /var/lib/puppet from the client, readded the package + configuration - removed and re-added node-definition (with server restart in between) - touched all .pp files I'm running puppet 3.4.3 on the server and clients. Any help would be greatly appreciated! Denny -- 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 puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9a6f67ad-bf16-4f21-b59a-8b3b14f814de%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.