I hereby claim:
- I am vjanelle on github.
- I am random (https://keybase.io/random) on keybase.
- I have a public key whose fingerprint is 4223 2D96 8BEF 1F0A 229D 72AA 5C6C 56AE 9D17 E85F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
:filters - (Array<) One or more filters. | |
architecture - The instance architecture (i386 | x86_64). | |
availability-zone - The Availability Zone of the instance. | |
block-device-mapping.attach-time - The attach time for an Amazon EBS volume mapped to the instance. | |
block-device-mapping.delete-on-termination - A Boolean that indicates whether the Amazon EBS volume is deleted on instance termination. |
SOLIPSISTIC PUBLIC LICENSE | |
Version 1, April 2013 | |
Copyright (C) 2013 | |
Everyone is permitted to copy and distiribute verbatim copies of | |
this license document. Modified copies of this document are | |
permitted provided that they denouce BOTH the original AND | |
their copy as mere sense data with no verifiable cause outside the mind. |
# Remove parameters on resources that aren't exported or tagged public | |
ExtFilterDefine resources-remove-parameters-nonexported-nonpublic mode=output \ | |
intype=application/json outtype=application/json \ | |
cmd="/usr/bin/jq map(if\ .exported\ or\ (.tags\ |\ contains([\"public\"]))\ then\ .\ else\ .parameters={}\ end)" |
#!/usr/bin/python | |
import socket | |
# The general premise behind this is that kafka needs a unique broker id, and well, the ip address | |
# of the system has to be unique. They're both 32bit numbers, so why not? | |
broker_id = int(socket.inet_aton(socket.gethostbyname(socket.gethostname())).encode('hex'),16) | |
print "kafka_brokerid=%s" % str(broker_id) |
require 'spec_helper' | |
describe 'rabbitmq::repo::rhel' do | |
describe 'package with params' do | |
let :params do | |
{ | |
:key => "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc", | |
:version => "2.8.4", | |
:relversion => "1",· | |
} |
botocore.parsers.ResponseParserError: Unable to parse response (not well-formed (invalid token): line 1, column 0), invalid XML received: | |
{ | |
"CreateDBInstanceResponse": { | |
"CreateDBInstanceResult": { | |
"DBInstance": { | |
"AllocatedStorage": 10, | |
"AutoMinorVersionUpgrade": "True", | |
"AvailabilityZone": "None", | |
"BackupRetentionPeriod": "1", | |
"CharacterSetName": null, |
I had to execute easy_install pygments, which worked. This is to stop it from communicating my secret manifests over the internets. | |
The puppet module has an exec statement to self-generate the docs for the manifest. | |
I also had to 'rvm system', because I don't know what I'm doing. | |
# Fact: | |
# macaddresses to interfaces | |
# | |
# Purpose: | |
# Make a fact to detail the interfaces for a normalized mac address | |
# | |
# Caveats: | |
# Only tested on linux, deals with 802.3ad bonded links, but I have not | |
# tested other kinds of interfaces | |
# |
# find_ip_by_interface.rb | |
# | |
# Attempts to discover which interface will serve a particular destination | |
# | |
require 'ipaddr' | |
module Puppet::Parser::Functions | |
newfunction(:find_ip_by_interface, :type => :rvalue) do |args| | |
address = IPAddr.new(args[0]) |