I hereby claim:
- I am rodjek on github.
- I am rodjek (https://keybase.io/rodjek) on keybase.
- I have a public key ASC7CNRlpA-1t5WuR-nH2PJoyCoFb9Uhra3DJ0x-eJen4go
To claim this, I am signing this object:
require 'rspec' | |
require 'facter' | |
describe 'facter_value' do | |
context 'when stubbing Facter::Util::Collection#fact' do | |
before(:each) do | |
stub_fact = instance_double(Facter::Util::Fact, :value => 'foo') | |
allow(Facter.collection).to receive(:fact).with(:test_fact).and_return(stub_fact) | |
end |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1') | |
choco -y install ruby vim |
I hereby claim:
To claim this, I am signing this object:
<csvx:document xmlns:csvx="http://lol"> | |
<csvx:header> | |
<csvx:value>title 1</csvx:value> | |
<csvx:value>title 2</csvx:value> | |
<csvx:value>title 3</csvx:value> | |
</csvx:header> | |
<csvx:row> | |
<csvx:value>item1</csvx:value> | |
<csvx:value>item2</csvx:value> | |
<csvx:value>item3</csvx:value> |
class foo( | |
$bar, | |
$baz = true, | |
$gronk = false, | |
) { | |
# ... | |
} |
$hosts = ['hosta','hostb','hostc'] | |
range(0,count($hosts)-1).each |$num| { | |
$port = 8080 + $num | |
somemodule::someservice { $hosts[$num]: | |
listening_port => $port, | |
} | |
} |
class foo($template = 'foo.erb') { | |
file { '/tmp/foo': | |
source => $template, | |
} | |
} | |
# Use generic template | |
class { 'foo': } | |
# Override the template |
class foo { | |
notify { 'test': | |
message => $name, # This is still in Class[foo] scope | |
} | |
} | |
class foo { | |
mynotify { 'test': } | |
} |
# First option, make elasticsearch a parameterised class | |
node /^tcsearch(0[1-9]|10)\.deskstaging\.com$/ inherits staging { | |
class { 'elasticsearch': | |
security_group => 'foo', | |
} | |
} | |
node /^tcsearch2[0-9]\.deskstaging\.com$/ inherits staging { | |
class { 'elasticsearch': |