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
on textualcmd(inputString, destinationChannel) | |
return "/quote AWAY " & inputString | |
end textualcmd |
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::Type.newtype(:remove_after) do | |
@doc = "Removes ensurable temporary resources once they have been used. | |
MORE HERE | |
" | |
newparam(:temp_resource) do | |
desc <<-'EOT' | |
The ensurable resource to remove. This can be specified as either a | |
resource reference or as a string in the form "Type[name]". Note that |
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
# 1.9.3 box | |
[root@puppet cli]# r10k version -v | |
r10k 1.4.0 | |
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] | |
Command path: /usr/bin/r10k | |
Interpreter path: /opt/puppet/bin/ruby | |
System encoding: UTF-8 | |
# 1.8.7 box | |
[root@puppet-eli cli]# r10k version --verbose | |
r10k 1.4.1 |
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
def deep_upcase(item) | |
if item.respond_to? :upcase | |
return item.upcase | |
end | |
case item | |
when Array | |
item.map { |i| deep_upcase(i) } | |
when Hash | |
Hash[item.map { |k,v| [deep_upcase(k), deep_upcase(v)] } ] | |
else |
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
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost puppet-eli | |
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost puppet-eli |
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::Parser::Functions::newfunction( | |
:fqdn_rand_base64, | |
:arity => -2, | |
:type => :rvalue, | |
:doc => "Usage: `fqdn_rand_base64(LENGTH, [SEED])`. LENGTH is required and | |
must be a positive integer; SEED is optional and may be any number or string. | |
Generates a random base64 string LENGTH characters long, combining the `$fqdn` | |
fact and the value of SEED for repeatable randomness. (That is, each node | |
will get a different random string from this function, but a given node's |
NewerOlder