chef-provisioner 0.1.3 → 0.1.4
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: cdbca2477c98ef6259c33f2d8e7b7046340e655e
|
4
|
+
data.tar.gz: 4d0065c4ef99661341f375aab2c2881ce944e9fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1a60f82a92143ffead765827837723235c978ca4e3afcc981b735ffaa192bbfd25f4c8a2482417203bc0e251b9ee4a06f78ecfad979b65e5ba0f119f7e58a51
|
7
|
+
data.tar.gz: 3094c6f7102704a21ffc19174063252b941e7d96dd079e200aa4b74ee4b1ec100fe7ef99ca3cace7a2a8126c6f871484eb14ab0b2088dd01a10da706956f8b65
|
@@ -9,14 +9,14 @@ 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)
|
12
|
+
def generate(node_name: '', chef_version: '12.4.1', environment: nil, server: '', first_boot: {}, reinstall: false, audit: false)
|
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
|
16
16
|
run_list = first_boot['run_list'] if first_boot['run_list']
|
17
17
|
client_pem = ChefProvisioner::Chef.init_server(node_name, run_list: (run_list || []))
|
18
18
|
first_boot.merge!( fqdn: node_name, chef_client: {config: {chef_server_url: server}} )
|
19
|
-
render(node_name: node_name, client_pem: client_pem, chef_version: chef_version, environment: environment, server: server, first_boot: first_boot, reinstall: reinstall)
|
19
|
+
render(node_name: node_name, client_pem: client_pem, chef_version: chef_version, environment: environment, server: server, first_boot: first_boot, reinstall: reinstall, audit: audit)
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|
@@ -29,4 +29,4 @@ cat > /etc/chef/first_boot.json << EOF
|
|
29
29
|
EOF
|
30
30
|
|
31
31
|
# Start the chef run
|
32
|
-
chef-client -c /etc/chef/client.rb -j /etc/chef/first_boot.json <%= "| tee -a #{logfile}" if logfile %>
|
32
|
+
chef-client -c /etc/chef/client.rb -j /etc/chef/first_boot.json <%= "--audit-mode enabled" if audit %> <%= "| tee -a #{logfile}" if logfile %>
|