Skip to content

Instantly share code, notes, and snippets.

View ryanycoleman's full-sized avatar

Ryan Coleman ryanycoleman

  • Stackery
  • Portland, OR
View GitHub Profile
# modulepath is /etc/puppetlabs/puppet/modules
# helloworld/manifests/init.pp
class helloworld {
file { '/tmp/hello':
ensure => file,
source => "puppet:///modules/helloworld/hello",
}
@ryanycoleman
ryanycoleman / gist:1648544
Created January 20, 2012 17:24
functions move
- Classes
- - parameterised
- - abbreviated_relationships
- - exercise_hidd
- Defined Resource Types
- - overview
- usage
- example
- module_structure
- exercise
@ryanycoleman
ryanycoleman / gist:1634941
Created January 18, 2012 19:03
mco puppetral
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",