Skip to content

Instantly share code, notes, and snippets.

Avatar

Bryan Berry bryanwb

View GitHub Profile
View lxc-centos
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors:
View gist:4583957
# /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
View gist:4031717
# library cookbook postgres
# postgresql::server_redhat
user "postgres" do
home "/var/lib/pgsql/postgres"
end
# cookbook my-wrapper-postgres
include_recipe "postgres::server_redhat"
View gist:3696935
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