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
diff --git a/chef-repo/cookbooks/hudson/recipes/grails.rb b/chef-repo/cookbooks/hudson/recipes/grails.rb | |
index f76614c..3ef0d78 100644 | |
--- a/chef-repo/cookbooks/hudson/recipes/grails.rb | |
+++ b/chef-repo/cookbooks/hudson/recipes/grails.rb | |
@@ -1,4 +1,7 @@ | |
-directory "/opt/grails" | |
+directry "/tmp/opt/grails" | |
+link "/opt/grails" do | |
+ to "/tmp/opt/grails" | |
+end |
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
# build machine | |
# ami-205fba49 w/ aki-9b00e5f2 | |
# update yum / install dev tools | |
yum clean all | |
perl -p -i -e 's/.?baseurl\=http\:\/\/download.fedora.redhat.com\/pub\/fedora\/linux/baseurl\=http\:\/\/archives.fedoraproject.org\/pub\/archive\/fedora\/linux/g' \ | |
/etc/yum.repos.d/* | |
perl -p -i -e 's/.?mirrorlist(.*)/\#mirrorlist$1/g' /etc/yum.repos.d/* | |
perl -p -i -e 's/gpgkey\=file\:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-fedora/gpgkey\=file\:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY/g' \ | |
/etc/yum.repos.d/fedora.repo |
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
begin | |
r = resources(:template => '/etc/blah') | |
r.variables[:new_stuff] = 'foo' | |
rescue RuntimeError => e | |
template '/etc/blah' do | |
source 'blah.erb' | |
variables :one => 'two' | |
end | |
end |