Juri Rischel Jensen jrisch

View gist:9093757
1 2 3 4 5 6 7 8 9 10
[local]
localhost
 
[prod]
web01 ansible_ssh_host=xx.xx.xx.xx ansible_ssh_port=2222 ansible_ssh_private_key_file=sshkey
web02 ansible_ssh_host=xx.xx.xx.xx ansible_ssh_port=2223 ansible_ssh_private_key_file=sshkey
 
[balancers]
lb01 ansible_ssh_host=xx.xx.xx.xx ansible_ssh_private_key_file=sshkey ansible_python_interpreter=/usr/local/bin/python2.7
lb02 ansible_ssh_host=xx.xx.xx.xx ansible_ssh_private_key_file=sshkey ansible_python_interpreter=/usr/local/bin/python2.7
View gist:9093677
1 2 3 4 5 6 7 8 9 10
- hosts: balancers
user: root
tags: deploy
tasks: [ ]
 
- hosts: prod
serial: 1
tasks:
 
- name: Upload DB dump to prod
View ansible jabber notification test
1 2 3 4 5 6 7 8 9 10
---
- hosts: localhost
connection: local
gather_facts: no
tasks:
- name: Test
local_action: shell /usr/local/bin/pwgen -s 14 1
register: password
View gist:360533
1 2 3 4 5 6 7 8 9 10
require 'rubygems'
require 'resque'
require 'resque/job_with_status' # in rails you would probably do this in an initializer
Resque.redis = "resque-dev.v50.loc:6379"
 
# sleeps for _length_ seconds updating the status every second
 
class SleepJob < Resque::JobWithStatus
def perform
View gist:222178
1 2 3 4 5 6 7 8 9
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
Something went wrong with that request. Please try again.