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
| # Just propagates the event to the caching daemon. | |
| exec { 'propagation hack to nscd!': | |
| command => 'echo "propogating to Class[nscd]"', | |
| path => [ '/bin', '/usr/bin' ], | |
| refreshonly => true, | |
| notify => Class['nscd'], | |
| } |
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 foo($message = 'foo is the message') { | |
| notify { 'foo': message => $message } | |
| } | |
| class baz inherits foo { | |
| $message = 'baz is the message' | |
| Notify['foo'] { message => $message } | |
| } |
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
| root@ningyo:~# puppet cert --list --trace | |
| Error: Could not create resources for managing Puppet's files and directories in sections [:main, :ssl, :ca]: undefined method `exists?' for #<Puppet::Type::Group:0x7f50216fd5d8> | |
| /usr/lib/ruby/vendor_ruby/puppet/settings.rb:725:in `service_group_available?' | |
| /usr/lib/ruby/vendor_ruby/puppet/settings/file_setting.rb:54:in `send' | |
| /usr/lib/ruby/vendor_ruby/puppet/settings/file_setting.rb:54:in `safe_to_use_settings_value?' | |
| /usr/lib/ruby/vendor_ruby/puppet/settings/file_setting.rb:45:in `value' | |
| /usr/lib/ruby/vendor_ruby/puppet/settings/file_setting.rb:102:in `group' | |
| /usr/lib/ruby/vendor_ruby/puppet/settings/file_setting.rb:157:in `to_resource' | |
| /usr/lib/ruby/vendor_ruby/puppet/settings.rb:847:in `to_catalog' | |
| /usr/lib/ruby/vendor_ruby/puppet/settings.rb:844:in `each' |
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
| --- | |
| # Data needed for Class['openstack::compute'] | |
| # The IP and interface that external sources will use to communicate with the instance and hypervisors. | |
| openstack::compute::public_interface: 'eth0' | |
| openstack::compute::internal_address: "%{ipaddress_eth0}" | |
| openstack::compute::iscsi_ip_address: "%{ipaddress_eth0}" | |
| # The interface that will handle instance to intance communication and instance outbound traffic. | |
| openstack::compute::private_interface: 'eth1' |
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
| Equivalent to `puppet cert list` | |
| [root@puppetmaster ~]# curl --cert /etc/puppetlabs/puppet/ssl/certs/puppetmaster.local.puppetlabs.net.pem --key /etc/puppetlabs/puppet/ssl/private_keys/puppetmaster.local.puppetlabs.net.pem --cacert /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem -H 'Accept: yaml' https://puppetmaster.local.puppetlabs.net:8140/production/certificate_requests/all | |
| --- | |
| - !ruby/object:Puppet::SSL::CertificateRequest | |
| name: foo.local.puppetlabs.net | |
| content: !ruby/object:OpenSSL::X509::Request {} | |
| expiration: 2013-06-23 14:22:46.306077 -07:00 |
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
| vim = RbVmomi::VIM.connect(:host => 'vcenter.puppetlabs.net', :user => 'cody@puppetlabs.com', :password => 'foo', :insecure => true) | |
| vim.searchIndex.FindByInventoryPath(:inventoryPath => 'pdx_office/vm/Business Development/cody/infrastructure/pm1').name |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <statsfeeder> | |
| <numberOfThreads>10</numberOfThreads> | |
| <frequency unit="second">600</frequency> | |
| <feeder>true</feeder> | |
| <csvOutput>true</csvOutput> | |
| <receivers> | |
| <receiver> | |
| <name>csvOutput</name> | |
| <class>com.vmware.ee.statsfeeder.CSVFileStatsReceiver</class> |
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
| input { | |
| s3 { | |
| bucket => 'example-cloudtrail' | |
| codec => cloudtrail {} | |
| credentials => "/opt/aws_creds" | |
| region_endpoint => "us-west-2" | |
| type => "cloudtrail" | |
| } | |
| } |
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
| $dns_hosts = [{ | |
| 'title' => 'test-1a-record.testme.puppetlabs.net', | |
| 'parameters' => { | |
| "domain"=>"testme.puppetlabs.net", | |
| "ddns_key"=>"/etc/bind/keys.d/dhcp_updater", | |
| "customername"=>"puppetlabs", | |
| "ttl"=>"4800", "provider"=>"bind", | |
| "username"=>"puppetlabs", | |
| "content"=>"172.16.100.150", | |
| "type"=>"A", |
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
| [root@megacon1 yum.repos.d]# openstack help project list | |
| usage: openstack project list [-h] [-f {csv,table}] [-c COLUMN] | |
| [--max-width <integer>] | |
| [--quote {all,minimal,none,nonnumeric}] [--long] | |
| List projects | |
| optional arguments: | |
| -h, --help show this help message and exit | |
| --long List additional fields in output |