View lxc-centos
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 | |
# | |
# template script for generating CentOS container for LXC | |
# | |
# | |
# lxc: linux Container library | |
# Authors: |
View gist:4583957
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
# /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
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
# 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
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
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 |