Skip to content

Instantly share code, notes, and snippets.

View austb's full-sized avatar

Austin Blatt austb

  • Portland, OR
View GitHub Profile
function frankhelp(){
echo "Everything works off of frankbase, which is --install --vmpooler --preserve_hosts=always --keyfile=/home/austb/.ssh/vmpooler-id_rsa"
echo "frankmono = frankbase"
echo "franksplit = frankbase + --split --master=master.vm --console=console.vm --puppetdb=puppetdb.vm"
echo "frankha = frankbase + --ha --provision"
echo "franklei = frankbase + --lei"
echo "frankcomp = frankbase + --compiler"
}
function frankbase(){
local workdir=$(mktemp -dp /home/austb/workdirs)
$ fpm --verbose -s empty -t rpm -d '(openjdk-11-jre-headless or openjdk-8-jre-headless)' -n puppetdb --version 7.0.0
Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
Require just the needed backports instead, or 'backports/latest'.
Setting workdir {:workdir=>"/tmp", :level=>:info}
Setting from flags: epoch= {:level=>:info}
Setting from flags: iteration= {:level=>:info}
Setting from flags: name=puppetdb {:level=>:info}
Setting from flags: url=http://example.com/no-uri-given {:level=>:info}
Setting from flags: version=7.0.0 {:level=>:info}
<Network freenode>
FloodBurst = 4
FloodRate = 1.00
IRCConnectEnabled = true
JoinDelay = 0
LoadModule = simple_away
LoadModule = cert
LoadModule = sasl
Server = chat.freenode.net +6697

Keybase proof

I hereby claim:

  • I am austb on github.
  • I am austb (https://keybase.io/austb) on keybase.
  • I have a public key ASDMJT8q3Z3DVyAeKFs_Sx21IcuiAD6weH-fuCZDRUDhQQo

To claim this, I am signing this object:

Differences from expected (in reports)

Where expected is this document

expression type code expected actual
sensitive {"__ptype"=>10} "#<Sensitive [value redacted]:70229233735920>" [redacted]
deferred Deferred('join', [[1,2,3], ':']) "Deferred({'name' => 'join', 'arguments' => [[1, 2, 3], ':']})" "1:2:3"
@austb
austb / test.pp
Last active August 16, 2018 17:26
class test (
Timespan $timespan = undef
) {
Integer[1,5].each |$x| { notice $x }
$huge_num = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999.9
notify { 'foo':
message => {
'non_rich_data' => 'a string',
#!/usr/bin/env ruby
# Usage
#
# Ensure exectuable
# place in root of puppet repo (ie. ~/src/puppet/serialize_catalog.rb)
# cd into the puppet repo
# invoke with 'bundle exec ./serialize_catalog.rb <path/to/manifest.pp>
require 'puppet'