shiplane_bootstrappers_chef 0.1.14 → 0.1.15

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: 4030ed72c0135d66b257116dac76d2cafc9c8e6bc21eb0c79e78ad50c1277dfc
4
- data.tar.gz: 2639e7074d24a4fc0f8fb555b28c9529eeda294964ac0cf096d8c50f90068cd2
3
+ metadata.gz: 26bb2a361f11b91bfd8326b31288facc25775d076c502184ae3cec2a024f1f2b
4
+ data.tar.gz: 55a3243ae7231d1a858d2372a5c339cf24f09636e3102e6768c266f563689797
5
5
  SHA512:
6
- metadata.gz: 9af17b09e7a1881938c2bb363c02acdc2a72c91472d7084e490a84ea7e0924606730c71e7c592a61dc7cbf75d48f7955655d451ffbab8dda3cd9f1de1182a353
7
- data.tar.gz: 11e1ea0e93c5eb40b9669b2cf69d4b5b6b816fc29d9e3f8a1b09213ce1fe2e1c79d6f3e90a25719d11cb5925dfda6c9bf4b5747f71d5d8460088952f4d63ed4c
6
+ metadata.gz: 16b6072270de6f91998e0e30dcaaafdbea57ed26f1f809efabe9f24b600d33f98d9f6d760dc7795c0f310697ee01dd64442dc425529c1ae9f2c5e1e011e692be
7
+ data.tar.gz: 5ad3c274530ef38d5c13b5bf08ff5887c15e19d2074e2585bded162036befdf7107a287a3d476603ce17c38f0d4e6852cea877b43e69381eeef5d4ec0cb232b5
Binary file
@@ -24,6 +24,11 @@ namespace :shiplane do
24
24
  task :evaluate_erb_files, :username, :keypath do |task, args|
25
25
  Dotenv.load Shiplane::ChefHost.env_file
26
26
  on fetch(:shiplane_hosts).map(&:capistrano_role) do |host|
27
+ @shiplane_users = [
28
+ "docker",
29
+ host.user,
30
+ ].compact.uniq.join("\",\"")
31
+
27
32
  Dir["#{File.expand_path("../../../chef", __FILE__)}/**/*.erb"].map do |filename|
28
33
  compiled_template = ERB.new(File.read(filename)).result(binding)
29
34
  compiled_file_name = filename.match(/.*\/chef\/(.*)\.erb/)[1]
@@ -9,9 +9,7 @@
9
9
  "group": {
10
10
  "name": "docker"
11
11
  },
12
- "user": {
13
- "name": "docker"
14
- }
12
+ "users": ["<%= @shiplane_users %>"]
15
13
  },
16
14
  "run_list":
17
15
  [
@@ -3,7 +3,7 @@
3
3
  module Shiplane
4
4
  module Bootstrappers
5
5
  module Chef
6
- VERSION = "0.1.14"
6
+ VERSION = "0.1.15"
7
7
  end
8
8
  end
9
9
  end
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.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Epperson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-03 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano