Last active
August 29, 2015 14:01
-
-
Save DamianZaremba/1e5d6388ca17fcfa13ae to your computer and use it in GitHub Desktop.
Puppet 3.5 hiera issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Tue May 06 12:10:29] [root@puppet-03 facter]$cat /etc/puppet/environments/production/hiera/hiera.yaml | |
--- | |
:backends: yaml | |
:yaml: | |
:datadir: "/etc/puppet/environments/%{::environment}/hiera" | |
:hierarchy: | |
- "node/%{::fqdn}" # ws-27.lhr4.**************** | |
- "type/%{::servertype}" # TI | |
- "silo/%{::silo}" # lhr_xml_05 | |
- "project/something" # project specific stuff | |
- "environment/%{::environment}" # production | |
- "site/%{::datacenter}" # LHR4 | |
- "os/%{::operatingsystem}/%{::operatingsystemrelease}" # CentOS/5.5 | |
- users # user stuff | |
- common # global stuff | |
:logger: console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[main] | |
pluginsync = true | |
logdir = /var/log/puppet | |
rundir = /var/run/puppet | |
ssldir = $vardir/ssl | |
factpath = $vardir/lib/facter | |
[agent] | |
classfile = $vardir/classes.txt | |
localconfig = $vardir/localconfig | |
server = puppet3 | |
splaylimit = 60 | |
report = true | |
[master] | |
trusted_node_data = true | |
stringify_facts = false | |
parser = future | |
pluginepath = $confdir/environments/$environment/plugins | |
modulepath = $confdir/environments/$environment/modules | |
hiera_config = $confdir/environments/$environment/hiera/hiera.yaml | |
manifest = $confdir/environments/$environment/manifests/site.pp | |
autosign = /etc/puppet/autosign.conf | |
certname = puppet3 | |
dns_alternative_names = puppet3 | |
reports = http,puppetdb | |
reporturl = http://127.0.0.1/reports/upload | |
node_terminus = exec | |
external_nodes = /opt/rc/bin/puppet_enc | |
storeconfigs = true | |
storeconfigs_backend = puppetdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Error from DataBinding 'hiera' while looking up 'rsyslog::package_status': undefined method `empty?' for nil:NilClass at /etc/puppet/environments/production/modules/rc/manifests/base.pp:2:1 on node puppet-04.******************* | |
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:194:in `is_http_200?' | |
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/rest.rb:100:in `find' | |
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:201:in `find' | |
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:259:in `retrieve_new_catalog' | |
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in `thinmark' | |
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' | |
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in `thinmark' | |
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:258:in `retrieve_new_catalog' | |
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:69:in `retrieve_catalog' | |
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:109:in `prepare_and_retrieve_catalog' | |
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:175:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:48:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in `lock' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:48:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:118:in `with_client' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:45:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:83:in `run_in_fork' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in `call' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in `controlled_run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:42:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:355:in `onetime' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:321:in `run_command' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:372:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:479:in `plugin_hook' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:372:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:479:in `exit_on_fail' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:372:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:51:in `override' | |
/usr/lib/ruby/site_ruby/1.8/puppet.rb:233:in `override' | |
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:362:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:137:in `run' | |
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:91:in `execute' | |
/usr/bin/puppet:4 | |
Warning: Not using cache on failed catalog | |
Error: Could not retrieve catalog; skipping run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Tue May 06 08:26:12] [root@puppet-04 ~]$rpm -qa | grep -E '(puppet|facter|hiera)' | |
hiera-1.3.2-1.el6.noarch | |
puppet-dashboard-1.2.23-1.el6.noarch | |
facter-2.0.1-1.el6.x86_64 | |
puppet-3.5.1-1.el6.noarch | |
puppetdb-1.6.3-1.el6.noarch | |
puppet-server-3.5.1-1.el6.noarch | |
puppetdb-terminus-1.6.3-1.el6.noarch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment