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
| 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' |
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
| /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) |
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
| # 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 | |
| } |
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
| 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 |
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
| 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 |
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
| roles: | |
| controller: | |
| classes: | |
| openstack::provision |
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
| class do_osd_things($name) { | |
| osd {$name: | |
| ensure => present, | |
| } | |
| ceph_config { 'default/osd_name': | |
| value => "Osd[$name][id]" | |
| } |
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
| def id | |
| get_cepd_osd_id | |
| end |
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
| 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 = {} |
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: 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 |