I'm having an issue with the default puppet.conf distributed with puppet 2.6.4
(FreeBSD port). I've reproduced the problem with a completely fresh install on
a completely fresh OS in a VM. Under these conditions, running puppetmaster
with no config is fine, but simply moving the puppet.conf-dist file to
puppet.conf causes the following errors on console:
Performing sanity check of puppetmaster configuration: FAILED, puppetmaster
exited with status 1
Could not prepare for execution: Got 1 failure(s) while initializing: change
from directory to file failed: Could not set 'file on ensure: Is a directory -
/var/puppet/facts
/usr/local/etc/rc.d/puppetmaster: WARNING: failed precmd routine for
puppetmaster
and the following is logged to syslog:
Feb 8 22:34:06 puppetmaster puppet-master[14713]: (/File[/var/puppet/facts])
Not removing directory; use 'force' to override
Feb 8 22:34:06 puppetmaster puppet-master[14713]: (/File[/var/puppet/facts])
Not removing directory; use 'force' to override
Feb 8 22:34:06 puppetmaster puppet-master[14713]:
(/File[/var/puppet/facts]/ensure) change from directory to file failed: Could
not set 'file on ensure: Is a directory - /var/puppet/facts
Feb 8 22:34:07 puppetmaster puppet-master[14719]: (/File[/var/puppet/facts])
Not removing directory; use 'force' to override
Feb 8 22:34:07 puppetmaster puppet-master[14719]: (/File[/var/puppet/facts])
Not removing directory; use 'force' to override
Feb 8 22:34:07 puppetmaster puppet-master[14719]:
(/File[/var/puppet/facts]/ensure) change from directory to file failed: Could
not set 'file on ensure: Is a directory - /var/puppet/facts
/var/puppet/facts is a directory, and I'm not sure why puppet would want to
convert it to a file, or why it would fail to do so if it really needs it to be
a file.
> ls -ld /var/puppet/ /var/puppet/facts/
drwxr-xr-x 12 puppet puppet 512 Jan 25 18:00 /var/puppet/
drwxr-xr-x 2 puppet puppet 512 Jan 25 18:00 /var/puppet/facts/
facts-related config entries in the dist puppet.conf are:
> grep fact puppet.conf | grep -v '^ *#'
factsource = puppet://puppet/facts/
factpath = /var/puppet/lib/facter:/var/puppet/facts
factdest = /var/puppet/facts/
Does anyone know what's causing this, or how to correct it? Google is showing
me a couple other occurrences of this with older versions, but no solutions.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.