Issue #1756 has been updated by Alan Barrett.
This problem still exists in version 0.25.5.
puppetmasterd --genmanifest | grep 'mode =>' returns a curious mixture of octal
and decimal modes:
<pre>
# /usr/local/sbin/puppetmasterd --genmanifest | grep 'mode =>'
mode => '384',
mode => '432',
mode => '1023',
mode => '488',
mode => '420',
mode => '504',
mode => '504',
mode => '420',
mode => '432',
mode => '420',
mode => '488',
mode => '504',
mode => '432',
mode => '505',
mode => '488',
mode => '432',
mode => '420',
mode => '1005',
mode => '488',
mode => '420',
mode => '488',
mode => '750',
mode => '488',
mode => '750',
mode => '432',
mode => '384',
</pre>
This means that "puppetmasterd --genmanifests | puppet" does not work as a way
of creating all the necessary files and directories.
----------------------------------------
Bug #1756: puppetd --genmanifest output has bad syntax
https://projects.puppetlabs.com/issues/1756
Author: Jonathan Billings
Status: Accepted
Priority: Low
Assignee:
Category: settings
Target version: unplanned
Affected Puppet version: 0.24.6
Keywords:
Branch:
puppetd --genmanifest doesn't create output that is syntactically correct.
I've attached the output foo.pp.
$ /usr/sbin/puppetd --version
0.24.6
$ /usr/sbin/puppetd --genmanifest > foo.pp
$ puppet foo.pp
Could not parse for environment production: Syntax error at 'class'; expected
'}' at /home/jsbillin/foo.pp:2
I "fixed" foo.pp by removing the " top {" at the beginning and closing "}"
before the includes. This file is foo2.pp.
Now I see this:
$ puppet foo2.pp
err: Could not create /home/jsbillin/.puppet/var/clientbucket: Parameter mode
failed: Could not convert "0488" to integer
Parameter mode failed: Could not convert "0488" to integer
It looks like all the file objects look something like this:
file { '/home/jsbillin/.puppet/var/clientbucket':
ensure => 'directory',
loglevel => 'debug',
backup => 'false',
mode => '488'
}
Clearly, '488' isn't an octal value since it has 8s in it. Also, it's a
string, not an integer.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.