Issue #6775 has been updated by Mark Barry.
Status changed from Closed to Re-opened
Support Urls deleted (http://this.is.a.customer.ticket/)
I have come across the same problem with puppet 3.2.3 on Solaris sparc running
as root. Setting confdir and vardir on the command line, only sets the actual
keys in the value to the command line values:
Eg:
puppet master --genconfig \
--confdir /var/opt/app/puppetlabs/puppet \
--vardir /var/opt/app/puppetlabs/puppet/var \
> /var/opt/app/puppetlabs/puppet/puppet.conf
# The default value is '/var/opt/app/puppetlabs/puppet/var'.
vardir = /var/opt/app/puppetlabs/puppet/var
...
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/lib/puppet/run
Really, rundir should be set to /var/opt/app/puppetlabs/puppet/var/run .
Same issue with confdir:
# The default value is '/var/opt/app/puppetlabs/puppet'.
confdir = /var/opt/app/puppetlabs/puppet
But nothing else is set to match this..
# The private key directory.
# The default value is '/etc/puppet/ssl/private_keys'.
privatekeydir = /etc/puppet/ssl/private_keys
# The YAML file containing indirector route configuration.
# The default value is '/etc/puppet/routes.yaml'.
route_file = /etc/puppet/routes.yaml
As 3.2.4 was a security patch release, I haven't worried about trying that
version of puppet to reproduce the problem.
Running the same command on Linux with 2.7.14, results in the same behaviour.
WORK AROUND:
If the command line is not broken across lines it works.
RELATED:
To continue the trend of inconsistencies, running puppet agent --genconfig on
windows results in no output, whereas on linux and solaris (unix I guess) works.
----------------------------------------
Bug #6775: puppet master --genconfig bug
https://projects.puppetlabs.com/issues/6775#change-96783
* Author: Valdis Vitayaudom
* Status: Re-opened
* Priority: High
* Assignee: Valdis Vitayaudom
* Category: executables
* Target version:
* Affected Puppet version:
* Keywords: customer
* Branch:
----------------------------------------
looks like --confdir and --vardir is inconsistent and other variables miss
declared default
$ puppet master --genconfig --server config1350vm0.dev.orbitz.net > 1
$ puppet master --genconfig --server config1350vm0.dev.orbitz.net --vardir
/var/lib/puppet --confdir /etc/puppet > 3
$ diff 1 3
10c10
< # Generated on Fri Mar 18 14:34:08 -0500 2011.
---
> # Generated on Fri Mar 18 14:34:19 -0500 2011.
BUT
$ puppet master --genconfig --server config1350vm0.dev.orbitz.net --vardir
/var/lib/puppet2 --confdir /etc/puppet2 | sed 's/puppet2/puppet/g' > 2
$ diff 1 2 > bug.txt
254c254
< reports = http, store
---
> # reports = store
263c263
< # bindaddress =
---
> bindaddress = 0.0.0.0
319c319
< masterlog = /var/log/puppet/puppetmaster.log
---
> masterlog = /var/lib/puppet/log/puppetmaster.log
363c363
< pidfile = /var/run/puppet/master.pid
---
> pidfile = /var/lib/puppet/run/master.pid
371c371
< ssldir = /var/lib/puppet/ssl
---
> ssldir = /etc/puppet/ssl
398c398
< privatekeydir = /var/lib/puppet/ssl/private_keys
---
> privatekeydir = /etc/puppet/ssl/private_keys
407c407
< hostcsr = /var/lib/puppet/ssl/csr_config1350vm0.dev.orbitz.net.pem
---
> hostcsr = /etc/puppet/ssl/csr_config1350vm0.dev.orbitz.net.pem
416c416
< hostpubkey =
/var/lib/puppet/ssl/public_keys/config1350vm0.dev.orbitz.net.pem
---
> hostpubkey =
/etc/puppet/ssl/public_keys/config1350vm0.dev.orbitz.net.pem
449c449
< pluginsync = true
---
> # pluginsync = false
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.