Skip to content

Instantly share code, notes, and snippets.

Puppet::DevError - Attempting to initialize global default settings more than once!:
/opt/ruby/lib/ruby/gems/1.9.1/gems/puppet-3.4.2/lib/puppet/settings.rb:200:in `initialize_global_settings'
/opt/jruby-1.7.8/lib/ruby/gems/shared/gems/sequel-4.3.0/lib/sequel/model/base.rb:1823
if public_methods.map{|s| s.to_s}.include?(m)
# file manifests/osd.pp
class ceph::osd($instance_hash) {
create_resources('osd::instance', $instance_hash)
}
# file manifests/osd/instance.pp
define ceph::osd::instance(param1, ...) {
# logic goes here
}
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
print hiera values
export RUBYLIB=/etc/puppet/modules/hiera_data_mapper/lib
hiera \
--debug \
--config /etc/puppet/hiera.yaml \
operatingsystem=redhat \
scenario=2_role nova::verbose
roles:
controller:
classes:
openstack::provision
class do_osd_things($name) {
osd {$name:
ensure => present,
}
ceph_config { 'default/osd_name':
value => "Osd[$name][id]"
}
def id
get_cepd_osd_id
end
def get_keys_per_dir(dir, scope={}, is_data_mapping=false, interpolate_hiera_data=true)
begin
require 'hiera'
rescue
Puppet.Warning("Hiera libraries could not be loaded")
return {}
end
# get the hiera config file
hiera_config_file = File.join(Puppet[:confdir], 'hiera.yaml')
data = {}
Error: Cached facts for control-server failed: Failed to find facts from PuppetDB at build-server.domain.name:8081: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A
Error: Could not call 'find' on 'facts': Failed to find facts from PuppetDB at build-server.domain.name:8081: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A
Error: Could not call 'find' on 'facts': Failed to find facts from PuppetDB at build-server.domain.name:8081: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A