search for: hieratest

Displaying 2 results from an estimated 2 matches for "hieratest".

2012 Jul 01
1
puppet-hiera used with Parameterised class
Hi Puppet Users, For some bizzare reason I am unable to use hiera-puppet with a parameterised class. The output is: ---------------------------- root@hiera hieratest/manifests# puppet apply -e "include hieratest" Error: undefined method `catalog'' for #<Hash:0xb6c53d00> at line 1 on node hiera.localdomain Wrapped exception: undefined method `catalog'' for #<Hash:0xb6c53d00> Error: undefined method `catalog'' for #&...
2012 Sep 26
6
Puppet 2.7, hiera 1.0 and hiera as an ENC
...a command. Something like these: hiera app1_version sysclass=app1 env=dev Returns the expected ''3.0'' and if I query by adding teh host: hiera app1_version sysclass=app1 env=dev hostname=host1 I get 3.1. Cool! Example using Gary''s approach: /opt/puppet-data/nonprod/hieratest/default.yaml --- classes: hieratest env: hieratest_default /opt/puppet-data/nonprod/hieratest/host1.yaml --- classes: hieratest: env: ''hieratest_performance'' # hiera env sysclass=hieratest --debug DEBUG: Wed Sep 26 16:40:46 +0100 2012: Hiera YAML backend starting DEBUG: We...