Skip to content

Instantly share code, notes, and snippets.

View ody's full-sized avatar

Cody Herriges ody

  • Puppet Labs
  • Oregon, United States of America
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<statsfeeder>
<numberOfThreads>10</numberOfThreads>
<frequency unit="second">600</frequency>
<feeder>true</feeder>
<csvOutput>true</csvOutput>
<receivers>
<receiver>
<name>csvOutput</name>
<class>com.vmware.ee.statsfeeder.CSVFileStatsReceiver</class>
input {
s3 {
bucket => 'example-cloudtrail'
codec => cloudtrail {}
credentials => "/opt/aws_creds"
region_endpoint => "us-west-2"
type => "cloudtrail"
}
}
$dns_hosts = [{
'title' => 'test-1a-record.testme.puppetlabs.net',
'parameters' => {
"domain"=>"testme.puppetlabs.net",
"ddns_key"=>"/etc/bind/keys.d/dhcp_updater",
"customername"=>"puppetlabs",
"ttl"=>"4800", "provider"=>"bind",
"username"=>"puppetlabs",
"content"=>"172.16.100.150",
"type"=>"A",
[root@megacon1 yum.repos.d]# openstack help project list
usage: openstack project list [-h] [-f {csv,table}] [-c COLUMN]
[--max-width <integer>]
[--quote {all,minimal,none,nonnumeric}] [--long]
List projects
optional arguments:
-h, --help show this help message and exit
--long List additional fields in output
##
#
class openstacklib::params {
$servicedefault = '<SERVICE DEFAULT>'
}
##
#
class nova::params inherits ::openstacklib::params {
@ody
ody / gist:824195
Created February 12, 2011 22:27
Bad idea?
class params {
$foo = 'bar'
}
define blort() {
include params
notify{ $name: message => $params::foo }
}
blort { 'works?': }
ody@orihime:[stomp-irb]% ruby stomp-irb -s localhost --port 61613 -u guest -P guest
Interactive Ruby shell for STOMP
Type 'help' for usage instructions
ruby-1.8.7-p334 :001 > subscribe :topic, 'foo'
Current Subscriptions:
/topic/foo
=> nil
ruby-1.8.7-p334 :003 > topic 'foo', 'hello'
Sent hello to /topic/foo
=> nil
ruby-1.8.7-p334 :004 > topic 'foo', 'hello'
<<stomp>> hello
Sent hello to /topic/foo
=> nil
ruby-1.8.7-p334 :005 > topic 'foo', 'hello'
<<stomp>> hello
Sent hello to /topic/foo
@ody
ody / gist:866485
Created March 11, 2011 20:13
mca vim snippet.
snippet mca
module MCollective
module Agent
class ${1:Agentname}<RPC::Agent
metadata
:name => "${2:agentname}",
:description => "Performs $2 actions",
:author => "${3:myname}",
:license => "${4:BSD}",
:version => "${5:0.0.1}",
@ody
ody / gist:979893
Created May 19, 2011 00:15
Ruby 1.9.2 puppet cert failure.
HEAD is now at fc0add1... Updated CHANGELOG for 2.7.0rc3
ody@orihime:[puppet]% rvm use 1.9.2
Using /Users/ody/.rvm/gems/ruby-1.9.2-p180
ody@orihime:[puppet]% envpuppet puppet cert --list
Could not parse options: wrong number of arguments (1 for 0)