Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmbuilder script pushes chef client into machine
- Loading branch information
root
committed
Nov 15, 2011
1 parent
b70df0d
commit a2e565d
Showing
4 changed files
with
38 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
mkdir $1/etc/chef | ||
knife configure client $1/etc/chef/ | ||
|
||
chroot $1 sudo apt-get update | ||
chroot $1 sudo apt-get install --force-yes -y ruby ruby-dev libopenssl-ruby rdoc ri irb build-essential wget ssl-cert lsb-release | ||
|
||
chroot $1 wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz -O /tmp/rubygems-1.7.2.tgz | ||
chroot $1 tar zxf /tmp/rubygems-1.7.2.tgz -C /tmp | ||
chroot $1 sudo ruby /tmp/rubygems-1.7.2/setup.rb --no-format-executable | ||
|
||
chroot $1 sudo gem install chef --no-ri --no-rdoc |