shiplane_bootstrappers_chef 0.2.3 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c38ecfec8ef15b16e5610302a23bbf22d358118aa0106a5bc25b55d18daa679c
|
4
|
+
data.tar.gz: bd3e3506e64e3fe7ba3e9e0fa90e3fbe82317a6f1341aba20c1779f07ae0a3ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0b89898f53900760373c7309ab024159cd5f03ad094a971ad7ccc81a0817ab2f0e60f14be014c9d5d48512b270e94b037751096d91ba6c04ccf15772b084965
|
7
|
+
data.tar.gz: d9182ca1def9660381a4d27b695886a751ed2ae309eaebb2c37765da530fca1532ff38e4a8039c6082ad5a5376f3ccf1c3bdffab55a5761fb4c63d6d9d43e2db
|
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
|
@@ -22,7 +22,11 @@ namespace :shiplane do
|
|
22
22
|
# end
|
23
23
|
|
24
24
|
task :evaluate_erb_files, :username, :keypath do |task, args|
|
25
|
-
|
25
|
+
dotenv_filename = Shiplane::ChefHost.env_file
|
26
|
+
dotenv_filename = "#{dotenv_filename}.#{fetch(:stage)}" if File.exist?("#{dotenv_filename}.#{fetch(:stage)}")
|
27
|
+
|
28
|
+
Dotenv.load dotenv_filename
|
29
|
+
|
26
30
|
on fetch(:shiplane_hosts).map(&:capistrano_role) do |host|
|
27
31
|
@shiplane_users = [
|
28
32
|
"docker",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shiplane_bootstrappers_chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Epperson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|