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
apt-get install -y build-essential | |
apt-get build-dep -y postgresql | |
wget http://ftp.postgresql.org/pub/source/v9.2.1/postgresql-9.2.1.tar.gz | |
tar -zxvf postgresql-9.2.1.tar.gz | |
cd postgresql-9.2.1 | |
export MAJOR_VER=9.2 | |
./configure \ | |
--prefix=/opt/chef/embedded \ | |
--mandir=/opt/chef/embedded/share/postgresql/${MAJOR_VER}/man \ | |
--docdir=/opt/chef/embedded/share/doc/postgresql-doc-${MAJOR_VER} \ |
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
# ADD this to Rakefile and run it by issuing rake roles.to_json | |
ROLE_DIR = File.expand_path(File.join(TOPDIR, "roles")) | |
namespace :roles do | |
desc "Convert ruby roles from ruby to json, creating/overwriting json files." | |
task :to_json do | |
Dir.glob(File.join(ROLE_DIR, '*.rb')) do |rb_file| | |
role = Chef::Role.new | |
role.from_file(rb_file) | |
json_file = rb_file.sub(/\.rb$/,'.json') |
NewerOlder