Class: PoolParty::Provision::Chef
- Defined in:
- lib/poolparty/provision/configurations/chef.rb
Class Method Summary collapse
Class Method Details
.commands ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/poolparty/provision/configurations/chef.rb', line 5 def self.commands 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 #{debug_flag} -c /etc/chef/solo.rb -j /etc/chef/dna.json" ] end |
.files_to_upload ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/poolparty/provision/configurations/chef.rb', line 15 def self.files_to_upload [ # "#{Default.tmp_path}/dr_configure/chef/solo.rb", # "#{Default.tmp_path}/dr_configure/chef/dna.json", # "#{Default.base_config_directory}/chef/solo.rb", # "#{Default.base_config_directory}/chef/dna.json" ] end |