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 params { | |
| $foo = 'bar' | |
| } | |
| define blort() { | |
| include params | |
| notify{ $name: message => $params::foo } | |
| } | |
| blort { 'works?': } |
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
| ody@orihime:[stomp-irb]% ruby stomp-irb -s localhost --port 61613 -u guest -P guest | |
| Interactive Ruby shell for STOMP | |
| Type 'help' for usage instructions | |
| ruby-1.8.7-p334 :001 > subscribe :topic, 'foo' | |
| Current Subscriptions: | |
| /topic/foo | |
| => nil |
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
| ruby-1.8.7-p334 :003 > topic 'foo', 'hello' | |
| Sent hello to /topic/foo | |
| => nil | |
| ruby-1.8.7-p334 :004 > topic 'foo', 'hello' | |
| <<stomp>> hello | |
| Sent hello to /topic/foo | |
| => nil | |
| ruby-1.8.7-p334 :005 > topic 'foo', 'hello' | |
| <<stomp>> hello | |
| Sent hello to /topic/foo |
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
| snippet mca | |
| module MCollective | |
| module Agent | |
| class ${1:Agentname}<RPC::Agent | |
| metadata | |
| :name => "${2:agentname}", | |
| :description => "Performs $2 actions", | |
| :author => "${3:myname}", | |
| :license => "${4:BSD}", | |
| :version => "${5:0.0.1}", |
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
| HEAD is now at fc0add1... Updated CHANGELOG for 2.7.0rc3 | |
| ody@orihime:[puppet]% rvm use 1.9.2 | |
| Using /Users/ody/.rvm/gems/ruby-1.9.2-p180 | |
| ody@orihime:[puppet]% envpuppet puppet cert --list | |
| Could not parse options: wrong number of arguments (1 for 0) |
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
| user { 'bob': | |
| ensure => present, | |
| } | |
| user { 'isntbob': | |
| ensure => absent, | |
| name => 'bob', | |
| } |
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
| user { 'isbob': | |
| ensure => present, | |
| name => 'bob', | |
| } | |
| user { 'isntbob': | |
| ensure => absent, | |
| name => 'bob', | |
| } |
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
| vhost { 'dashboard': ensure => present } | |
| Package <| name == 'passenger' |> -> Vhost['dashboard'] |
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
| vhost { 'dashboard': ensure => present } | |
| Package['passenger'] -> Vhost['dashboard'] |
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@puppetmaster01 ~]# | |
| [root@puppetmaster01 ~]# /opt/puppet/bin/irb | |
| irb(main):001:0> require 'puppet' | |
| => true | |
| irb(main):002:0> Process::UID.change_privilege(102) | |
| => 102 | |
| irb(main):003:0> require 'puppet/network/server' | |
| LoadError: no such file to load -- puppet/network/server | |
| from /opt/puppet/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
| from /opt/puppet/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' |
OlderNewer