Skip to content

Instantly share code, notes, and snippets.

View standaloneSA's full-sized avatar

Matt Simmons standaloneSA

View GitHub Profile
$ git branch -a
add-rancid
* collectd
msimmons
production
remotes/origin/cba
remotes/origin/cba-pre-2013-03
remotes/origin/cmccoy
remotes/origin/collectd
remotes/origin/dnb

Keybase proof

I hereby claim:

  • I am standaloneSA on github.
  • I am standaloneSA (https://keybase.io/standaloneSA) on keybase.
  • I have a public key whose fingerprint is DA40 6A6F 63C1 0DCB 2AAE 3C79 2DB8 D138 DD8B 4A0F

To claim this, I am signing this object:

node default {
class { 'apt':
always_apt_update => true,
}
apt::ppa { 'ppa:raravena80/collectd5':
before => Class['collectd::plugin::write_graphite']
}
[default] Running provisioner: puppet...
Running Puppet with init.pp...
stdin: is not a tty
warning: Could not retrieve fact fqdn
warning: Host is missing hostname and/or domain: precise64
notice: /Stage[main]//Node[default]/Apt::Ppa[ppa:raravena80/collectd5]/Package[python-software-properties]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Collectd/Package[collectd]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Collectd/File_line[include_conf_d_dot_conf]/ensure: created
notice: /Stage[main]/Graphite::Install::Debian/Package[python-sqlite]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Graphite::Install::Debian/Package[python-txamqp]/ensure: ensure changed 'purged' to 'present'
node default {
class { 'apt':
always_apt_update => true,
}
apt::ppa { 'ppa:raravena80/collectd5': }
class { '::collectd':
require => Class['apt'],
root@precise64:/opt/graphite/storage/whisper/collectd/precise64/disk-sda1/disk_merged# whisper-info.py read.wsp
maxRetention: 63072000
xFilesFactor: 0.5
aggregationMethod: average
fileSize: 2561812
Archive 0
retention: 1800
secondsPerPoint: 1
points: 1800
root@precise64:/etc# cat graphite-api.yaml
search_index:/opt/graphite/storage/index
finders:
- graphite_api.functions.SeriesFunctions
- graphite_api.functions.PieFunctions
whisper:
directories:
- /opt/graphite/storage/whisper
time_zone: America/New_York
vlanXML = CLI("sh vlan id " + vlan + " | xml", 0)
vlanDOM = parseString(''.join(vlanXML.get_raw_output())[:-6])
vlanElement = vlanDOM.getElementsByTagName("vlanshowinfo-vlanid")[0]
vlanID = vlanElement.firstChild.nodeValue
exec { 'install-redis':
command => "make && make install PREFIX=${redis_bin_dir}",
cwd => $redis_src_dir,
path => '/bin:/usr/bin',
unless => "test $(${redis_bin_dir}/bin/redis-server --version | cut -d ' ' -f 1) = 'Redis'",
require => [ Exec['unpack-redis'], Package['gcc'] ],
}
msimmons@spyhunter:~/tmp/redis$ fpm -s dir -t deb -n redis -v 2.8.10 -C root/ -p redis-2.8.10_x64.deb /
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /tmp/package-dir-staging20140609-8799-oyq623/etc/logstash/agent/config/patterns (Errno::EACCES)
from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
from /usr/lib/ruby/1.8/fileutils.rb:172:in `mkdir'
from /usr/lib/ruby/1.8/fileutils.rb:171:in `each'
from /usr/lib/ruby/1.8/fileutils.rb:171:in `mkdir'
from /var/lib/gems/1.8/gems/fpm-1.1.0/lib/fpm/package/dir.rb:166:in `copy'
from /var/lib/gems/1.8/gems/fpm-1.1.0/lib/fpm/package/dir.rb:145:in `clone'
from /usr/lib/ruby/1.8/find.rb:39:in `find'
from /usr/lib/ruby/1.8/find.rb:38:in `catch'