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@pe-compiler-0bdfdb-0 production]# FACTER_fqdn=testnode1.example.com puppet apply -e 'class test($value3, $value2) { notice($value3, $value2) }; include test; notice(lookup(test::value1))' --debug --trace | |
| --- | |
| Debug: Automatic Parameter Lookup of 'test::value3' | |
| Searching for "lookup_options" | |
| Global Data Provider (hiera configuration version 5) | |
| Using configuration "/etc/puppetlabs/puppet/hiera.yaml" | |
| Hierarchy entry "Classifier Configuration Data" | |
| No such key: "lookup_options" | |
| Environment Data Provider (hiera configuration version 5) |
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
| # /etc/puppetlabs/code/environments/production/modules/mymodule/lib/puppet/functions/mymodule/upcase.rb | |
| require 'cassandra' | |
| require 'json' | |
| require 'yaml' | |
| Puppet::Functions.create_function(:'puppet_metadata_service::data_hash') do | |
| dispatch :hiera_data do | |
| param 'Hash', :options | |
| param 'Puppet::LookupContext', :context |
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
| plan ntp( | |
| TargetSpec $nodes | |
| ) { | |
| apply($nodes, _catch_errors => true, _run_as => root) { | |
| class { 'ntp': | |
| servers => [ 'ntp1.example.com', 'ntp2.example.com' ], | |
| } | |
| } |
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
| [cody@pe-mom1-prod ~]$ puppet job run --environment test_application --concurrency 1 "Openstack[slice-pdx1-test]" | |
| Starting deployment of Openstack[slice-pdx1-test] ... | |
| +-------------------+----------------------------+ | |
| | Job ID | 27 | | |
| | Environment | test_application | | |
| | Target | Openstack[slice-pdx1-test] | | |
| | Concurrency Limit | 1 | | |
| | Nodes | 9 | | |
| +-------------------+----------------------------+ |
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
| ## | |
| # | |
| define foo( | |
| $a, | |
| $b = "a is ${a}", | |
| ) { | |
| notify { $b: } | |
| } |
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 openstacklib::params { | |
| $servicedefault = '<SERVICE DEFAULT>' | |
| } | |
| ## | |
| # | |
| class nova::params inherits ::openstacklib::params { |
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 |
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
| 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
| <?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> |