Skip to content

Instantly share code, notes, and snippets.

View filler's full-sized avatar

Nick Silkey filler

View GitHub Profile
(heat)[~] heat build-info
+------------+-------------------------------------------+
| Property | Value |
+------------+-------------------------------------------+
| api | { |
| | "revision": "2014.k1-20141208-1199" |
| | } |
| engine | { |
| | "revision": "2014.k1-20141208-1199" |
| | } |
# Generated by iptables-save v1.4.7 on Fri Jun 13 16:48:48 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [58:6064]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-----> Installing Chef Omnibus (11.16.4)
downloading https://www.chef.io/chef/install.sh
to file /tmp/install.sh
trying wget...
Downloading Chef 11.16.4 for ubuntu...
downloading https://www.chef.io/chef/metadata?v=11.16.4&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
to file /tmp/install.sh.1583/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.16.4-1_amd64.deb
a9965ce5811ddd75af1b587e40cca934
PREP=source $(HOME)/.openrc/dnsaasci && \
export ANSIBLE_HOST_HEY_CHECKING=false && \
ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null \
-o ControlMaster=auto \
-o ControlPersist=60s \
-o StrictHostKeyChecking=no \
-o PubkeyAuthentication=yes'
PLAY=ansible-playbook deploy.yml
@filler
filler / gist:8d75f69edaf4f0717d80
Last active August 29, 2015 14:24
node-irc traceback
30 Jun 20:53:38 - RECV: :DandyPandy!daniel.givens@rackspace-23mc1h.res.rr.com PRIVMSG #dnsaas :It looks like most status calls are failing right now.
30 Jun 20:53:38 - Message parsed: PRIVMSG
undefined:1
<script id="channel_list_template" type="text/x-handlebars-template">{{#each c
^
SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage.<anonymous> (/root/slack-irc/node_modules/slack-client/src/client.js:669:28)
at IncomingMessage.emit (events.js:117:20)
@filler
filler / attribs
Last active August 29, 2015 14:25
default['zabbix']['user_databag']['enabled'] = false
default['zabbix']['user_databag']['name'] = 'credentials'
default['zabbix']['user_databag']['item'] = 'zabbix'
default['zabbix']['user_databag']['secret'] = '/etc/chef/secret'
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage
Cache Battery 0 in controller 0 is Learning (Active) [probably harmless]
Cache Battery 0 in controller 1 is Learning (Active) [probably harmless]
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage -b bat=0:0,1:0
OK - System: 'PowerEdge 1950', SN: 'J8YPRB1', 16 GB ram (8 dimms), 2 logical drives, 16 physical drives
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage -b bat_charge=0:0,1:0
OK - System: 'PowerEdge 1950', SN: 'J8YPRB1', 16 GB ram (8 dimms), 2 logical drives, 16 physical drives
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage --version
check_openmanage 3.6.5
Copyright (C) 2008-2011 Trond H. Amundsen
Installing atop python 2.4 had busted wgets in the honeypot.
Bug @ http://code.google.com/p/kippo/issues/detail?id=38
Author demanded 2.5+
Installed previously using vendor 2.4:
yum install python-setuptools.noarch python-devel gcc
easy_install pycrypto
easy_install pyasn1
curl -O -C - "http://pypi.python.org/packages/source/T/Twisted/Twisted-10.2.0.tar.bz2"
tar xvfj Twisted-10.2.0.tar.bz2
rdj:~ silkey$ sudo gem list | grep -E 'vagrant|veewee'
vagrant (0.7.2)
rdj:~ silkey$ vagrant
Tasks:
vagrant box # Commands to manage system boxes
vagrant destroy # Destroy the environment, deleting the created virtual machines
vagrant halt # Halt the running VMs in the environment
vagrant help [TASK] # Describe available tasks or one specific task
vagrant init [box_name] [box_url] # Initializes the current folder for Vagrant usage
vagrant package # Package a Vagrant environment for distribution
rdj:~ silkey$ sudo gem list | grep -E 'vagrant|veewee'
vagrant (0.7.2)
rdj:~ silkey$ sudo gem install veewee
Fetching: trollop-1.16.2.gem (100%)
Fetching: gherkin-2.1.5.gem (100%)
Building native extensions. This could take a while...
Fetching: json_pure-1.4.6.gem (100%)
Fetching: cucumber-0.8.5.gem (100%)
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)