Skip to content

Instantly share code, notes, and snippets.

@a13x212
a13x212 / gist:04c210bbff017dee74ba
Created July 23, 2015 20:53
sensu pagerduty json
{
"pagerduty": {
"api_key": "<key here>"
},
"handlers": {
"pagerduty": {
"type": "pipe",
"command": "/etc/sensu/handlers/pagerduty.rb"
}
}
/opt/chef-server/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find chef11-key-dump (>= 0) amongst [akami-1.2.1, app_conf-0.4.2, builder-3.2.2, bundler-1.6.1, bundler-unload-1.0.2, chef-11.12.4, chef-11.12.0.rc.1, chef-rewind-0.0.8, chef-vault-2.2.4, chef-zero-2.0.2, coderay-1.1.0, diff-lcs-1.2.5, diffy-3.0.3, em-winrm-0.5.5, erubis-2.7.0, eventmachine-1.0.3, excon-0.32.1, excon-0.31.0, executable-hooks-1.3.1, ffi-1.9.3, fog-1.21.0, fog-1.20.0, fog-brightbox-0.0.1, fog-core-1.21.1, fog-json-1.0.0, formatador-0.2.4, gem-wrappers-1.2.4, git-1.2.6, gssapi-1.0.3, gyoku-1.1.1, hashie-2.0.5, highline-1.6.21, httpclient-2.3.4.1, httpi-0.9.7, ipaddress-0.8.0, knife-ec2-0.8.0, knife-rackspace-0.9.1, knife-spork-1.3.2, knife-windows-0.5.15, little-plugger-1.1.3, logging-1.8.2, method_source-0.8.2, mime-types-1.25.1, mini_portile-0.5.3, mixlib-authentication-1.3.0, mixlib-cli-1.4.0, mixlib-config-2.1.0, mixlib-log-1.6.0, mixlib-shellout-1.4.0, mixlib-shellout-1.4.0.rc.1, multi_jso
@a13x212
a13x212 / gist:f2a778e1ca280cf9c8f0
Created May 22, 2015 19:49
chef-provisioning-0.20.1
You have requested to uninstall the gem:
chef-provisioning-0.20.1
chef-provisioning-docker-0.6 depends on chef-provisioning (~> 0.9)
If you remove this gem, these dependencies will not be met.
Continue with Uninstall? [yN]
kitchen converge default-centos-66
-----> Starting Kitchen (v1.4.0)
-----> Converging <default-centos-66>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 3.2.3...
Removing non-cookbook files before transfer
Preparing data_bags
Preparing validation.pem
Preparing client.rb
---
driver:
name: vagrant
provisioner:
name: chef_zero
platforms:
- name: ubuntu-14.04
- name: centos-6.6
@a13x212
a13x212 / gist:fa4abee72c5a1dde02bd
Created April 24, 2015 19:07
sensu redis config
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
@a13x212
a13x212 / gist:6264d05ccff615288b7e
Created March 17, 2015 23:39
chef provisioning docker ssl error
Recipe: sc_docker::dev_lamp
* machine_image[web_server] action create
- update node web_server at https://dummy.com/organizations/sc
- update normal.chef_provisioning.location.allocated_at from "2015-03-17 22:21:49 UTC" to "2015-03-17 23:35:14 UTC"
================================================================================
Error executing action `create` on resource 'machine_image[web_server]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
@a13x212
a13x212 / gist:4749f3629814597e2ab7
Created February 21, 2015 18:54
chef openstack error
chef exec rake aio_nova --trace
** Invoke aio_nova (first_time)
** Execute aio_nova
chef exec chef-client -z vagrant_linux.rb aio-nova.rb
[2015-02-21T13:51:37-05:00] INFO: Starting chef-zero on host localhost, port 8889 with repository at repository at /Users/a13x212/chef-openstack-testing-stack
One version per cookbook
[2015-02-21T13:51:37-05:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.18.0
[2015-02-21T13:51:37-05:00] INFO: *** Chef 11.18.0 ***
/Library/Ruby/Gems/2.0.0/gems/libyajl2-1.1.0/ext/libyajl2
extconf.rb:104:in `makemakefiles': unhandled exception
from extconf.rb:138:in `<main>'
@a13x212
a13x212 / gist:6908475
Created October 9, 2013 21:12
Rackspace agent log
Wed Oct 9 21:11:32 2013 INF: Log file started (pid 18300, path=/var/log/rackspace-monitoring-agent.log)
Wed Oct 9 21:11:32 2013 INF: Starting agent alex-webtest1 (guid=f222cae2-24c6-4daf-cde5-4040bfc6dac8, version=0.1.9, bundle_version=0.1.9-3)
Wed Oct 9 21:11:32 2013 INF: Successfully wrote /var/run/rackspace-monitoring-agent.pid
Wed Oct 9 21:11:32 2013 INF: Upgrades are disabled
Wed Oct 9 21:11:32 2013 ERR: 50.57.61.14:443 (hostname=agent-endpoint-ord.monitoring.api.rackspacecloud.com connID=1) -> Failed to connect: {"source":"after_connect","message":"ECONNREFUSED, connection refused","code":"ECONNREFUSED"}
Wed Oct 9 21:11:32 2013 INF: SRV:_monitoringagent._tcp.ord1.prod.monitoring.api.rackspacecloud.com -> Retrying connection in 53804ms
Wed Oct 9 21:11:32 2013 INF: 50.56.142.153:443 (hostname=agent-endpoint-dfw.monitoring.api.rackspacecloud.com connID=1) -> Connected
Wed Oct 9 21:11:32 2013 INF: 78.136.44.10:443 (hostname=agent-endpoint-lon.monitoring.api.rackspacecloud.com connID=1) -> Connected