Hi,
This is a very strange one. On my CA server (which also runs puppet as
an agent to control various things), sometimes a file gets turned into a
directory. It's only this file and on this server (the other puppet
controlled servers don't have this issue).
Using puppet 3.7.3 from the puppetlabs yum repo.
My manifest has this:
file { '/usr/local/sbin/duplicity-backup.sh':
ensure => file,
owner => 'root',
group => 'root',
mode => '0755',
source => 'puppet:///modules/duplicity/duplicity-backup.sh',
}
so pretty simple. The source exists and is a bash script.
It starts off as a file:
Dec 2 23:47:28 server puppet-agent[1072]:
(/Stage[main]/Duplicity/File[/usr/local/sbin/duplicity-backup.sh]/ensure) defined
content as '{md5}db1ad110a94782a2e0edc9f1b650a854'
but turns into a directory:
Dec 3 00:54:12 server puppet-agent[23986]:
(/Stage[main]/Duplicity/File[/usr/local/sbin/duplicity-wrapper.sh])
Could not evaluate: Could not retrieve file metadata for
puppet:///modules/duplicity/duplicity-wrapper.sh: Could not intern from
text/pson: undefined method `delete' for
#<Puppet::Resource::Catalog:0x7f3b29db1468>
Dec 3 00:54:12 server puppet-agent[23986]:
(/Stage[main]/Duplicity/File[/usr/local/sbin/duplicity-wrapper.sh])
Wrapped exception:
Dec 3 00:54:12 server puppet-agent[23986]:
(/Stage[main]/Duplicity/File[/usr/local/sbin/duplicity-wrapper.sh])
Could not intern from text/pson: undefined method `delete' for
#<Puppet::Resource::Catalog:0x7f3b29db1468>
Dec 3 00:54:12 server puppet-agent[23986]:
(/Stage[main]/Duplicity/File[/usr/local/sbin/duplicity-backup.sh]/ensure) ensure
changed 'file' to 'directory'
Any help/ideas/suggestions would be great :)
Thanks!
--
Postgresql & php tutorials
http://www.designmagick.com/