This file contains hidden or 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: |
This file contains hidden or 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 |
This file contains hidden or 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" |
This file contains hidden or 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 |