Skip to content

Instantly share code, notes, and snippets.

webserver: {
access-log-config = /etc/puppetserver/request-logging.xml
client-auth = want
ssl-host = 0.0.0.0
ssl-port = 8140
}
@fiddyspence
fiddyspence / gist:e2546b654204025c049f
Last active August 29, 2015 14:21
Well, this is weird:
spenceware:~ fids$ cat test.pp
notify { 'foo': } ~> exec { '/usr/bin/false': refreshonly => true, }
spenceware:~ fids$ puppet apply test.pp
Notice: Compiled catalog for spenceware in environment production in 0.28 seconds
Notice: foo
Notice: /Stage[main]/Main/Notify[foo]/message: defined 'message' as 'foo'
Error: /Stage[main]/Main/Exec[/usr/bin/false]: Failed to call refresh: /usr/bin/false returned 1 instead of one of [0]
Error: /Stage[main]/Main/Exec[/usr/bin/false]: /usr/bin/false returned 1 instead of one of [0]
Notice: Finished catalog run in 0.10 seconds
spenceware:puppetlabs-puppetdb fids$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Installing rake 10.4.2
Using CFPropertyList 2.2.8
Using i18n 0.7.0
Using json 1.8.2
Installing minitest 5.6.0
Installing thread_safe 0.3.5
Using tzinfo 1.2.2
@fiddyspence
fiddyspence / gist:379a9c82cce23dc2c71d
Last active August 29, 2015 14:18
Forge gzip lies
spenceware:~ fids$ curl -o foo https://forge.puppetlabs.com/api/v1/releases.json?module=puppetlabs/nodejs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7175 100 7175 0 0 11957 0 --:--:-- --:--:-- --:--:-- 11958
spenceware:~ fids$ file foo
foo: ASCII text, with very long lines, with no line terminators
spenceware:~ fids$ curl -o foo https://forge.puppetlabs.com/api/v1/releases.json?module=puppetlabs/nodejs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7175 100 7175 0 0 11523 0 --:--:-- --:--:-- --:--:-- 11535
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDW9CR10GZ3AfJBolgchwo37n8LDLIAz+8MuLuDMIdPNYf5unWq+J0/JGTKk2U3qW0zMTB6kcEyzFdC3U0iBS+ew4HMfOh4OOFNYQOCOjrytIshT2Ym2lfZie2fq/hWMiNjyRaTtBBjJcYyKXHjkoOBQcaY/sRHkFbetH705CAE6V9CSApUD74Z2yWcJnnCLM69QHBMpTeT+aEmYbNZnCfoqZncXIsH2qVc4/Nwv8BHW0kMEFgs1E9QT+OhaOsy07g3sg9U2q9a6b2AYm0rSipXCfV+H5bNqDT7ogvvbK2die1O91phTnzA9XGFqPx1oQ7mmpgnMmdn7PN9RiqBygr/ [email protected]
### Keybase proof
I hereby claim:
* I am fiddyspence on github.
* I am fiddyspence (https://keybase.io/fiddyspence) on keybase.
* I have a public key whose fingerprint is C906 E87D 8922 519F F1F5 E0D9 7416 7B31 A1DA FABE
To claim this, I am signing this object:
function ssh {
while true ; do
/usr/bin/ssh -A $*
if [ $? == '0' ]; then
break
fi
sleep 1
done
}
class thing {
create_resources (foo,{})
create_resources (bar,{})
Foo <| tag == 'thing' |> -> Bar <| tag == 'thing' |>
}
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]
C:\Program Files (x86)\Puppet Labs\Puppet\bin>facter domain
Could not retrieve domain: undefined method `gsub' for nil:NilClass
The system cannot find the path specified.
The system cannot find the path specified.
Using Facter::Util::Resolution.exec with a shell built-in is deprecated. Most bu
ilt-ins can be replaced with native ruby commands. If you really have to run a b
uilt-in, pass "cmd /c your_builtin" as a command (command responsible for this m
essage was "dnsdomainname 2> /dev/null")
spenceware:~ fids$ irb
irb(main):001:0> 'www.foo' =~ /^www.*/
=> 0