On 23/11/2012 23:03, fpommier wrote:
Hi,
I use puppet 2.7.16
i try to use hiera to store file data
yaml file :
apt:
  '/etc/apt/preferences.d':
     ensure: directory
     recurse: true
     source: "puppet:///$environment/$module_name/preferences.d"


Try this with;

       source: "puppet:///%{environment}/%{module_name}/preferenced.d

Your source path confuses me a bit anyway, surely your environment dictates your modulepath and this should just be puppet:///modules/%{module_name}/preferences.d ?

Regards
Craig

--
Craig Dunn
Professional Services
Puppet Labs Inc.
http://www.puppetlabs.com

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to