I hereby claim:
- I am gregbuehler on github.
- I am gregbuehler (https://keybase.io/gregbuehler) on keybase.
- I have a public key whose fingerprint is F49C 5DF8 93A2 9CE3 5DEF 9C5A 7DCB 9B26 1D3A 88A5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
- name: register systems | |
shell: foo.py {{ item }} | |
with_items: targets | |
register: registered_systems | |
- name: toggle baz | |
shell: bar.py {{ item }} | |
with_items: registered_systems.results |
var pg = require('pg'); | |
var pg_cs = "tcp://gbuehler@localhost/bigbro"; | |
exports.disconnect = function pg_disconnect() { | |
pg.end() | |
}; | |
exports.pg_query = function pg_query(sql) { | |
console.log("database.pg_query: %s", sql); |
vars: | |
java_home: /opt/java/jdk1.7 | |
tasks: | |
- shell: echo $PATH | |
register: initial_path | |
- name: do work | |
shell: run_java_foo.sh | |
environment: |
config: | |
name: foo | |
owner: bar |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
boxes = [ | |
{ | |
:hostname => "redacted", | |
:ip => 'redacted', | |
:ports => [ |
upstream gitlab { | |
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; | |
} | |
# This is a normal HTTP host which redirects all traffic to the HTTPS host. | |
# Replace git.example.com with your FQDN. | |
server { | |
listen *:80; | |
server_name gitlab.example.com gitlab; | |
server_tokens off; |
- name: Check if EPEL is installed | |
shell: yum repolist | grep epel | wc -l | |
register: epel_installed | |
- name: Install EPEL5 package | |
yum: name={epel5_rpm} state=installed | |
when: (epel_installed == 0) and (ansible_distribution_version.find('5.') != -1) | |
- name: Install EPEL6 package | |
yum: name={epel6_rpm} state=installed |
foo: | |
version: "1.0.0" | |
server: | |
url: "http://www.example.com/releases/{{ foo.version }}/server/server-{{ foo.version }}.tar.gz" | |
client: | |
url: "http://www.example.com/releases/{{ foo.version }}/client/client-{{ foo.version }}.tar.gz" |
#!/bin/bash | |
(set -o igncr) 2>/dev/null && set -o igncr; # this comment is needed | |
set -e # stop on errors | |
export ANSIBLE_HOST_KEY_CHECKING=False | |
export ANSIBLE_SSH_ARGS="" | |
echo "ansible-playbook -u foo -vvvv -i /vagrant/inventory $1 -e \"base=../../.. WORKSPACE=/vagrant\" --limit $(hostname -s) --private-key /vagrant/insecure_private_key -c ssh" | |
ansible-playbook -u foo -vvvv -i /vagrant/inventory $1 -e "base=../../.. WORKSPACE=/vagrant" --limit $(hostname -s) --private-key /vagrant/insecure_private_key -c ssh |