Issue #12923 has been reported by Nathan Campi.
----------------------------------------
Bug #12923: $environment doesn't work with import
https://projects.puppetlabs.com/issues/12923
Author: Nathan Campi
Status: Unreviewed
Priority: High
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Create a site.pp like this:
notify { 'environment_notify':
message => "NOTICE: This system is being configured with the
environment ${environment}."
}
import "environments/$environment/nodes/*.pp"
You'll get your environment in the notification, but then you'll get an error
from the import like:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could
not parse for environment production: Syntax error at 'environments/' at
/etc/puppet/manifests/site.pp:27 on node foobar
Puppet version 2.6.4 on client and server. It's entirely appropriate, IMHO, for
puppet to be able to interpolate the $environment var on an import line.
Thanks.
--
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.