Skip to content

Instantly share code, notes, and snippets.

@pingali
Created April 30, 2009 02:35
Show Gist options
  • Save pingali/104212 to your computer and use it in GitHub Desktop.
Save pingali/104212 to your computer and use it in GitHub Desktop.
diff --git a/lib/poolparty/provision/configurations/chef.rb b/lib/poolparty/provision/configurations/chef.rb
index c1f07e9..407aeda 100644
--- a/lib/poolparty/provision/configurations/chef.rb
+++ b/lib/poolparty/provision/configurations/chef.rb
@@ -3,12 +3,14 @@ module PoolParty
class Chef
def self.commands
+ debug_flag = ""
+ debug_flag = "-l debug" if debugging?
[
"mkdir -p /etc/chef/cookbooks /etc/chef/cache",
"cp -R /var/poolparty/dr_configure/chef/cookbooks/* /etc/chef/cookbooks",
"cp /var/poolparty/dr_configure/chef/solo.rb /etc/chef/solo.rb",
"cp /var/poolparty/dr_configure/chef/dna.json /etc/chef/dna.json",
- "/usr/bin/chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json"
+ "/usr/bin/chef-solo #{debug_flag} -c /etc/chef/solo.rb -j /etc/chef/dna.json"
]
end
def self.files_to_upload
@@ -22,4 +24,4 @@ module PoolParty
end
end
-end
\ No newline at end of file
+end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment