Typo error location=frankfurt is actually location=london. On Thursday, August 16, 2012 5:25:17 PM UTC+2, linuxbsdfreak wrote: > > Hi All, > > I am using hiera for storing configuration values. I have setup puppet to > use facter following the article from > > http://nuknad.com/2011/02/11/self-classifying-puppet-nodes/ > > I have custom facts > > company_role > company_platform > company_location > > I have defined the following in hiera.yaml > > --- > :backends: > - yaml > > :logger: console > > :hierarchy: > - '%{operatingsystem}' > - '%{platform}/%{location}/%{role}' > - common > > :yaml: > :datadir: '/etc/puppet/hieradata' > > > and i create the directories > /etc/puppet/hieradata/production/london/dev_tst.yaml > > I have something like this in the above file > > --- > > hsflowd_port: 8080 > > company_role: dev_tst > company_platform: production > company_location: london > > Given a system with the above facts connecting to puppetmaster. When i run > the client i get the following error > > Err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find data item hsflowd_port in any Hiera data file and no default > supplied at /etc/puppet/modules/hsflowd/manifests/config.pp. > > > For some reason its not getting the value. However when i do the following > from the command line > > hiera -c /etc/puppet/hiera.yaml hsflowd_port platform=production > location=frankfurt role=dev_tst > > I get the value. > > Following is my manifest: > > class hsflowd::config( > $hsflowd_user = hiera('hsflowd_user'), > $hsflowd_group = hiera('hsflowd_group'), > $hsflowd_config_dir = hiera('hsflowd_config_dir'), > $hsflowd_port = hiera('hsflowd_port'), > ) > > { > > file { > "${hsflowd_config_dir}/hsflowd.conf": > ensure => present, > content => template("${module_name}/hsflowd.conf.erb"), > owner => $hsflowd_user, > group => $hsflowd_group, > mode => '0644'; > } > > Is something wrong that i am doing? > > Regards, > Kevin > > >
-- 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/-/L2PKd1u1QAgJ. 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.