This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"timestamp":"2013-03-01T15:32:21.396291+0000","message":"/etc/sensu/handlers/opsgenie.rb:51:in `post_to_opsgenie': undefined method `[]' for nil:NilClass (NoMethodError)","level":"info"} | |
{"timestamp":"2013-03-01T15:32:21.396685+0000","message":"\tfrom /etc/sensu/handlers/opsgenie.rb:46:in `create_alert'","level":"info"} | |
{"timestamp":"2013-03-01T15:32:21.397108+0000","message":"\tfrom /etc/sensu/handlers/opsgenie.rb:22:in `handle'","level":"info"} | |
{"timestamp":"2013-03-01T15:32:21.397329+0000","message":"\tfrom /usr/lib/ruby/1.8/timeout.rb:67:in `timeout'","level":"info"} | |
{"timestamp":"2013-03-01T15:32:21.397518+0000","message":"\tfrom /usr/lib/ruby/1.8/timeout.rb:101:in `timeout'","level":"info"} | |
{"timestamp":"2013-03-01T15:32:21.397894+0000","message":"\tfrom /etc/sensu/handlers/opsgenie.rb:19:in `handle'","level":"info"} | |
{"timestamp":"2013-03-01T15:32:21.398056+0000","message":"\tfrom /usr/lib/ruby/gems/1.8/gems/sensu-plugin-0.1.6/lib/sensu-handler.rb:41","level":"info"} | |
{"timestamp":"2013-03-01T15:32:21.39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is the script responsible for updating our Puppet master data, | |
# which includes modules, manifests, hiera data, etc. All of this data is | |
# managed in a git repository and upon "deploy" it is synced into the Puppet | |
# master. | |
# | |
# This script mirrors the remote git repository, looking for branches that | |
# match "env-*" (such as "env-production" or "env-test"). Each of these branches | |
# is setup as an environment into the Puppet master's data files. The |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
databases => { | |
'default' => | |
{ | |
'ENGINE' => 'postgresql_psycopg2', | |
'NAME' => 'defaultdb', | |
'HOST' => '2.2.2.2.2', | |
'USER' => 'username', | |
'PASSWORD' => 'secretinfo', | |
'OPTIONS' => | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost dist]# cat inifile.aug | |
(* | |
Module: IniFile | |
Generic module to create INI files lenses | |
Author: Raphael Pinson <raphink@gmail.com> | |
About: License | |
This file is licensed under the LGPLv2+, like the rest of Augeas. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pulp-manage-db | |
Beginning database migrations. | |
Migration package pulp.server.db.migrations is up to date at version 4 | |
Migration package pulp_puppet.plugins.migrations is up to date at version 0 | |
Applying pulp_rpm.migrations version 3 | |
Applying migration pulp_rpm.migrations.0003_custom_metadata_on_scratchpad failed. See log for details. | |
2013-05-02 10:47:16,928 db:CRITICAL: Applying migration pulp_rpm.migrations.0003_custom_metadata_on_scratchpad failed. | |
2013-05-02 10:47:16,928 db:CRITICAL: 'repodata' | |
2013-05-02 10:47:16,929 db:CRITICAL: Traceback (most recent call last): | |
File "/usr/lib/python2.6/site-packages/pulp/server/db/manage.py", line 79, in migrate_database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define groovy_root_dir /usr/share | |
Name: groovy | |
Version: 1.8.2 | |
Release: 1%{?dist} | |
License: See: http://groovy.codehaus.org/license.html | |
BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
Group: Development/Languages/Groovy | |
Summary: Contains the base system for executing groovy scripts. | |
Source: http://dist.codehaus.org/groovy/distributions/groovy-binary-%{version}.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
role :servers, "server1", "server2" | |
set :user, 'ubuntu' | |
def stop_load_balancer | |
run "echo service registerelb stop" | |
end | |
def start_load_balancer | |
run "echo service registerelb start" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'fog' | |
require 'yaml' | |
config = YAML::load_file(File.dirname(__FILE__) + '/config.yml') | |
cf = Fog::AWS::CloudFormation.new( | |
:aws_access_key_id => config['key'], | |
:aws_secret_access_key => config['secret'] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# nexusdeb builds a debian package of the Nexus repository manager. nexusdeb | |
# downloads nexus by itself. You run it by | |
# nexusdeb.sh <version> <maintainer> | |
# Example: | |
# nexusdeb.sh 2.0.5 "Denny Colt <d.colt@eisner.qcg>" | |
# | |
# The script has been tested with version 2.0.5. | |
if [ -z $1 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# via http://blog.zerosum.org/2011/03/02/better-aws-access-control-with-iam-and-fog.html | |
require 'fog' | |
username = 'testuser' | |
bucket = 'uniquebucketname1234' | |
aws_credentials = { | |
:aws_access_key_id => 'YOUR-ACCESS-KEY-ID', | |
:aws_secret_access_key => 'YOUR-SECRET-ACCESS-KEY' |