puppet time stamp check

63 views
Skip to first unread message

Lunixer

unread,
Jul 23, 2014, 6:44:37 PM7/23/14
to puppet...@googlegroups.com
Greetings,

I have an entry for a file in a puppet manifest that checks file properties.

/etc/puppet/modules/Linux/manifests/init.pp
file {"/etc/ld.so.conf": mode=>"644", owner=>"root", group=>"root", checksum=>"md5", audit=>all; }

An admin patched the server and several file checksums changed. Now the puppet client keeps sending messages like the one below.

Tue Jul 22 20:25:15 -0700 2014 /Stage[main]/Linux/File[/etc/ld.so.conf]/ctime (notice): audit change: previously recorded value Wed Aug 21 14:52:17 -0700 2013 has been changed to Tue Jul 22 20:25:10 -0700 2014

I was just given this task to solve but don't have much puppet knowledge.
I could not find much information by searching the web except for some bug related threads.
Could you advice me how to fix that?


--

thanks,
[ Lunixer ]

Lunixer

unread,
Jul 24, 2014, 7:31:05 PM7/24/14
to puppet...@googlegroups.com
Adding this for informational purposes.
This problem was related to the one I posted in another thread. The fix is below.

Blank the file.
#  cp /dev/null /var/lib/puppet/state/state.yaml

Run the agent.

# /opt/puppet/bin/puppet agent --test
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/ensure: audit change: newly-recorded value file
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/content: audit change: newly-recorded value {md5}e08b47228d3d97a3dbe2004d821500b2
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/target: audit change: newly-recorded value notlink
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/owner: audit change: newly-recorded value 0
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/group: audit change: newly-recorded value 3
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/mode: audit change: newly-recorded value 644
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/type: audit change: newly-recorded value file
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/seluser: audit change: newly-recorded value
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/selrole: audit change: newly-recorded value
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/seltype: audit change: newly-recorded value
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/selrange: audit change: newly-recorded value
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/ctime: audit change: newly-recorded value Thu Jul 24 03:10:00 -0700 2014
notice: /Stage[main]/Solaris/File[/etc/logadm.conf]/mtime: audit change: newly-recorded value Thu Jul 24 03:10:00 -0700 2014

Lun.
--

thanks,
[ Lunixer ]
Reply all
Reply to author
Forward
0 new messages