Skip to content

Instantly share code, notes, and snippets.

$service_addr6 = hiera('network::service6', undef)
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: (<unknown>): did not find expected '-' indicator while parsing a block collection at line 30 column 5
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
@b4ldr
b4ldr / auto.pp
Last active August 29, 2015 13:57
#In the example below the class "something::else" includes class "postgresql".
#De class puppios::checks::auto checks for the existence of both "postgresql"
#and "something::else". It will only detect "something::else" while the class
#postgresql is correctly applied to the host.
class puppios::checks::auto(
) inherits puppios::params {
#Check for classes
Mar 28 14:36:55 master1 puppet-master[4311]: Failed when searching for node console1.example.org: Could not load external node results for console1.example.org: undefined method `inject' for #<String:0x00000002a14ff8>
[main]
certname = <%= @fqdn %>
<% if @puppet_function == 'puppet_master' %>
dns_alt_names = master1,master,master.dns.example.com
<% end %>
vardir = /var/opt/lib/pe-puppet
logdir = /var/log/pe-puppet
rundir = /var/run/pe-puppet
modulepath = /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
server = master1.lax.dns.example.com
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node master1.example.org: Could not autoload puppet/indirector/node/console: uninitialized constant Puppet::Pops
@b4ldr
b4ldr / cli
Last active August 29, 2015 13:57
root@zabbix:~# /usr/local/bin/zabbix_host.py -t 10105 -g 8,2 --exists dev1.example.org
root@zabbix:~# /usr/local/bin/zabbix_host.py -t 10105 -g 8,2 dev1.example.org
root@zabbix:~# /usr/local/bin/zabbix_host.py -t 10105 -g 8,2 --exists dev1.example.org
[{u'hostid': u'10454'}]
class phantomjs::config {
require phantomjs::params
Exec { path => "/bin" }
file {"$phantomjs::params::phantomjs_base":
ensure => "directory",
owner => "root",
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node master1.lax.dns.icann.org: Could not autoload puppet/indirector/node/console: uninitialized constant Puppet::Pops
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:195:in `is_http_200?'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:101:in `find'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/indirection.rb:201:in `find'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:256:in `block in retrieve_new_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:327:in `block in thinmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:326:in `thinmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:255:in `retrieve_new_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:69:in `retrieve_catalog'
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node master1.lax.dns.icann.org: Could not load external node results for master1.lax.dns.icann.org: undefined method `inject' for "redirect to /cas/login?service=%2Fnodes%2Fmaster1%3F":String
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:195:in `is_http_200?'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/rest.rb:101:in `find'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/indirector/indirection.rb:201:in `find'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:256:in `block in retrieve_new_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:327:in `block in thinmark'
/opt/puppet/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util.rb:326:in `thinmark'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:255:in `retrieve_new_catalog'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/configurer.rb:69:in `retrieve_catalog'