shiplane_bootstrappers_chef 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/chef_host.rb +2 -1
- data/lib/shiplane/bootstrappers/chef/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 835cd55df422c99eea43207bfdef35d1d0d58534983bfdc465e86d34321edd90
|
4
|
+
data.tar.gz: 0ed648a4e97d88d5aa7f234d8e717755b1c258d42115a9eab436403324b0b332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59d7636e5b65f460cd3d3ab9c83eeb055ef3c701147fbac923d51aea3ca9e99491ca1d22b2ad45016a4b8958167d729bb08c1357feff199a2acf45fefb0eb66c
|
7
|
+
data.tar.gz: e4ff5f357c8e3ab49ebdf240030f737fdfcab2e27b94ed95cf5d407d5bcf0c82d9c25adaf512a91fe4f30a0ce1f4c58cf503f697a28dad14eb30c4e46602bf07
|
data/lib/capistrano/chef_host.rb
CHANGED
@@ -60,11 +60,12 @@ module Shiplane
|
|
60
60
|
def configure
|
61
61
|
with_context do
|
62
62
|
errors = {}
|
63
|
+
SSHKit.config.default_env["CHEF_LICENSE"] = "accept"
|
63
64
|
SSHKit::Coordinator.new(host).each in: :parallel do |h|
|
64
65
|
context_variables = fetch(:shiplane_sshkit_values)
|
65
66
|
|
66
67
|
begin
|
67
|
-
execute :sudo, 'chef-solo', '-c', "#{Shiplane::ChefHost::REMOTE_CHEF_FOLDER_PATH}/solo.rb",
|
68
|
+
execute :sudo, 'chef-solo', '-c', "#{Shiplane::ChefHost::REMOTE_CHEF_FOLDER_PATH}/solo.rb", interaction_handler: context_variables[:interaction_handler]
|
68
69
|
rescue => e
|
69
70
|
errors["#{h}"] = Shiplane::ChefErrorParser.parse(e)
|
70
71
|
end
|