chef-provisioner 0.1.7 → 0.1.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed0a998f7aa14b2f6068196e8da6fadee6138c0b
|
4
|
+
data.tar.gz: 1d0f9deda83e4ec934b8bb0b9ca558c03c3a1f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3efc98f20d6b93760f9f308359aba9b1760c8e4d80e4982015de0f69936f43180cd57ac12d75c2334660f597ccfecb9c8496e40f319311f3cdbbe9439bac1bcd
|
7
|
+
data.tar.gz: d1e84fd1d7f6d72432de920786179d5897e0f1d585f3f14c186f25ba5519f40eafa8e03ea736a166325ee997688eca8e89d9462d1675397ed769add0b48e0376
|
@@ -9,7 +9,7 @@ module ChefProvisioner
|
|
9
9
|
extend self
|
10
10
|
BOOTSTRAP_TEMPLATE = File.read(File.expand_path('../templates/bootstrap.erb', __FILE__)).freeze
|
11
11
|
|
12
|
-
def generate(node_name: '', chef_version: '12.4.1', environment: nil, server: '', first_boot: {}, reinstall: false, audit: false, force: false, retries: 0)
|
12
|
+
def generate(node_name: '', chef_version: '12.4.1', environment: nil, server: '', first_boot: {}, reinstall: false, audit: false, force: false, retries: 0, chef_cmd: nil)
|
13
13
|
node_name = node_name.strip
|
14
14
|
server = ChefAPI.endpoint if server.empty?
|
15
15
|
run_list = first_boot[:run_list] if first_boot[:run_list] # FIXME - symbolize keys instead of the dup here
|
@@ -29,4 +29,8 @@ cat > /etc/chef/first_boot.json << EOF
|
|
29
29
|
EOF
|
30
30
|
|
31
31
|
# Start the chef run
|
32
|
+
<% if chef_cmd %>
|
33
|
+
<%= chef_cmd %>
|
34
|
+
<% else %>
|
32
35
|
chef-client -c /etc/chef/client.rb -j /etc/chef/first_boot.json <%= "--audit-mode enabled" if audit %> <%= "| tee -a #{logfile}" if logfile %>
|
36
|
+
<% end %>
|