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: 449cd0b85f7d94a72092a1e10508dcaa1d9d5d4f
4
- data.tar.gz: 9a0f8021c657ddb2adf34dd6f52ce0c6dccffb35
3
+ metadata.gz: cdbca2477c98ef6259c33f2d8e7b7046340e655e
4
+ data.tar.gz: 4d0065c4ef99661341f375aab2c2881ce944e9fe
5
5
  SHA512:
6
- metadata.gz: 4537e87ee55db0faf992d9a3db353690bb0dbb1d3e60c83b483c510a0b9724ffea4f0be2a1871cc6907aad198654768530d7b3d9efbe9988e356fe0bd067231e
7
- data.tar.gz: 32ae99a2c8b1d9041c82a0d136beed25d6d663c8c18e527b0c1bb382bf201460883dc3cb389710b6e8889c01b6e3b1725e2160d9264a605261768cc240f08431
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 %>
@@ -1,4 +1,4 @@
1
1
  # Namespace for our gem
2
2
  module ChefProvisioner
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel