Issue #19006 has been reported by John Moser. ---------------------------------------- Bug #19006: per-environment templatedir doesn't actually work, https://projects.puppetlabs.com/issues/19006
Author: John Moser Status: Unreviewed Priority: Normal Assignee: Category: server Target version: 3.0.3 Affected Puppet version: 3.0.2 Keywords: Branch: As per http://docs.puppetlabs.com/guides/environment.html Puppet will only read the modulepath, manifest, manifestdir, and templatedir settings from environment config blocks; other settings in any of these blocks will be ignored in favor of settings in the [master] or [main] blocks. (Issue 7497) Issue #7497 covers the above. What this issue covers is as such: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: No such file or directory - /percona/loadbalance/haproxy/haproxy.cfg.erb With the node having (this is not best practice, but I'll find/write a module later) file { '/etc/haproxy/haproxy.cfg': content => template("$templatedir/percona/loadbalance/haproxy/haproxy.cfg.erb"), owner => 'root', group => 'root', mode => '0444', notify => Service[ 'haproxy' ], } And /etc/puppet/puppet.conf on the Puppetmaster containing: [dmz] manifestdir = $confdir/environments/$environment/manifests templatedir = $confdir/environments/$environment/templates manifest = $confdir/environments/$environment/manifests/site.pp The documentation indicates that this should work; however, it doesn't. Using puppetmaster with Passenger here. Apache has been restarted since the templatedir directive went into the config file. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
