Hi Craig, Your solution solve my problem. Thank a lot. I use this path because i want to seperate statics files and data hiera from puppet module (for versionning and test). And i want also have different data with each environment. My fileserver.conf : [developpement] path /etc/puppet/puppetData/developpement/fichiers allow *
[production] path /etc/puppet/puppetData/production/fichiers allow * When i try this, it don't work [fichiers] path /etc/puppet/puppetData/%{environment}/fichiers (or $environment) allow * May be not the best solution but it work now. Thank again. Fred Le dimanche 25 novembre 2012 00:45:27 UTC-10, Craig Dunn a écrit : > > 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 view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/SwJNXsz318IJ. 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.