Skip to content

Instantly share code, notes, and snippets.

View bryanwb's full-sized avatar

Bryan Berry bryanwb

View GitHub Profile
@bryanwb
bryanwb / lxc-centos
Last active December 16, 2015 10:18 — forked from hagix9/lxc-centos
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors:
@bryanwb
bryanwb / gist:4583957
Last active December 11, 2015 09:59 — forked from anonymous/gist:4583954
# /sbin/ifup
# add to top of file
for k in `ps -ef | grep dhclient | awk '{print $2}'`
do
echo $k 2> /dev/null
kill -9 $k
done
# library cookbook postgres
# postgresql::server_redhat
user "postgres" do
home "/var/lib/pgsql/postgres"
end
# cookbook my-wrapper-postgres
include_recipe "postgres::server_redhat"
node "master" do
action :provision
platform MasterMind::Platform::Vagrant
# needed for aws, rackspace, etc. but not vagrant
# credentials aws_credentials_hash
definition "/home/foo/vms/Vagrantfile"
end
node "standby" do
action :provision