engineyard-local 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,17 @@ module Engineyard
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def run_custom_chef_in_application_if_it_exists
|
51
|
-
|
51
|
+
<<ESHELL
|
52
|
+
if [[ ! -d /etc/chef-custom/recipes ]]; then sudo mkdir -p /etc/chef-custom/recipes; fi;
|
53
|
+
if [[ -d /vagrant/cookbooks ]]; then sudo ln -sF /vagrant/cookbooks /etc/chef-custom/recipes/cookbooks; fi;
|
54
|
+
echo 'cookbook_path "/etc/chef-custom/recipes/cookbooks"
|
55
|
+
log_level :info
|
56
|
+
file_store_path "/etc/chef-custom/recipes/"
|
57
|
+
file_cache_path "/etc/chef-custom/recipes/"
|
58
|
+
node_name "localhost"' > /tmp/_solo.rb;
|
59
|
+
sudo mv -f /tmp/_solo.rb /etc/chef-custom/solo.rb;
|
60
|
+
sudo env PATH=/usr/local/ey_resin/bin:/sbin:/bin:/usr/sbin:/usr/bin chef-solo -j /etc/chef/dna.json -c /etc/chef-custom/solo.rb;
|
61
|
+
ESHELL
|
52
62
|
end
|
53
63
|
|
54
64
|
def cookbook_uri
|