#1183: some settings are not environment aware, e.g; manifest
----------------------------------+-----------------------------------------
Reporter: ehisey | Owner: Fujin
Type: defect | Status: assigned
Priority: normal | Milestone: unplanned
Component: library | Version: 0.24.4
Severity: normal | Resolution:
Keywords: environment settings | Stage: Needs more info
Patch: None | Complexity: Unknown
----------------------------------+-----------------------------------------
Comment (by ehisey):
The manifest setting does work correctly when puppetd is actually running
but it is reported wrong by configprint. The manifestdir and templatedir
settings on the other hand do appear to be unaware of enviroments.[[BR]]
Templatedir example:
{{{
[main]
vardir = /var/lib/puppet
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
templatedir = /srv/puppet/
environment = production
[puppetmasterd]
environments = production,development
[puppetd]
environments = production,development
[production]
tempaltedir = /srv/puppet/production/manifests/templates
[development]
templatedir =/srv/puppet/development/imanifests/templates
}}}
Testing for prodcution is wrong.[[BR]]
{{{
# puppetd --environment production --configprint templatedir
/srv/puppet/
}}}
Testing for development is wrong.[[BR]]
{{{
# puppetd --environment development --configprint templatedir
/srv/puppet/
}}}
And for the templatedir setting the runtime evaluation is also wrong.
[[BR]]
{{{
# puppetd --noop --environment development --test
notice: Ignoring cache
err: Could not retrieve catalog: Could not find template puppet_conf.erb
at /srv/puppet/development/manifests/classes/puppet.pp:14 on node
pixie.unix.eng.ua.edu
warning: Not using cache on failed catalog
}}}
line 14 of puppet.pp
{{{
content => template("puppet_conf.erb"),
}}}
Listing of templates dir:
{{{
# ls /srv/puppet/development/manifests/templates/
cron.erb puppet_conf.erb tftp.erb updatedbconf.erb yum_conf.erb
}}}
Manifest example:[[BR]]
Using the same puppet.conf as the orginal bug report, when you run the
configprint you get:
{{{
# puppetd --environment development --configprint manifestdir
/etc/puppet/manifests
}}}
which is incorrect. The /etc/puppet/manifests dir is actually empty,
{{{
# ls /etc/puppet/manifests/
#
}}}
but when you run puppetd you get:
{{{
# puppetd --environment development --noop --test
notice: Ignoring cache
info: Caching catalog at /var/lib/puppet/localconfig.yaml
notice: Starting catalog run
notice: Finished catalog run in 11.11 seconds
}}}
And puppet finds a site.pp to evaluate.
Evan
--
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1183#comment:2>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---