The pe-easy-agent.sh script mentioned in the instance_defaults hash is available at pe-easy-agent.sh
This file contains 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 module install domcleal-augeasproviders | |
# puppet resource sshd_config | |
# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.good | |
# puppet apply sshd_config.pp | |
resources { 'sshd_config': | |
purge => true, | |
} |
This file contains 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
Monitor association changes string to array on one side, but other side is still a string. Causes a constantly change attempt: | |
----- | |
monitor_association changed '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "quorum"=>"0", "monitor_templates"=>"/Common/MyMonitor"}' to '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "monitor_templates"=>["/Common/MyMonitor"], "quorum"=>"0"}' |
This file contains 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
puppetconf { '2014': | |
ensure => busy, | |
website => 'puppetconf.com', | |
venue => 'sfo', | |
live_streaming => 'available', | |
} | |
11:10am - 11:50am | |
Getting Started with Puppet - Michael Stahnke, Puppet Labs - http://sched.co/1kR7leZ | |
Writing and Publishing Puppet Modules - Colleen Murphy, Puppet Labs - http://sched.co/1kR50kp |
This file contains 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/puppet/bin/puppet module install herculesteam-augeasproviders_apache | |
/opt/puppet/bin/puppet apply puppetmaster.pp | |
/opt/puppet/bin/puppet apply puppetdashboard.pp | |
/opt/puppet/bin/puppet apply jetty.pp |
Transferring a module to another owner is pretty simple when you break it down. See puppetlabs-nginx for an example.
Basically, you want to avoid surprising existing users of your module by raising a number of signals that will get their notice. It's as easy as 1-2-3!
- Transfer the GitHub repository to the puppet-community organization
- Prepare and release the "warning" Forge release to the existing namespace
This file contains 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
peadmin@training:~$ mco rpc puppetral create type=user title=elmo ensure=present | |
Determining the amount of hosts matching filter for 2 seconds .... 1 | |
* [ ============================================================> ] 1 / 1 | |
training.puppetlabs.lan | |
Status: Resource was created | |
Resource: {"exported"=>false, | |
"title"=>"elmo", |
This file contains 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
- Classes | |
- - parameterised | |
- - abbreviated_relationships | |
- - exercise_hidd | |
- Defined Resource Types | |
- - overview | |
- usage | |
- example | |
- module_structure | |
- exercise |
This file contains 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
# modulepath is /etc/puppetlabs/puppet/modules | |
# helloworld/manifests/init.pp | |
class helloworld { | |
file { '/tmp/hello': | |
ensure => file, | |
source => "puppet:///modules/helloworld/hello", | |
} |
This file contains 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@centos6 lib]# puppet master --configprint libdir | |
/var/lib/puppet/lib | |
[root@centos6 lib]# tree . | |
. | |
├── hiera | |
│ ├── backend | |
│ │ └── puppet_backend.rb | |
│ └── scope.rb | |
└── puppet | |
└── parser |
OlderNewer