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: 3a64b5cd29ae36647abad04170718a179d3bdff2
4
- data.tar.gz: 1bdbc42704a42a8ce2155fa272b9902198ed9b4f
3
+ metadata.gz: ed0a998f7aa14b2f6068196e8da6fadee6138c0b
4
+ data.tar.gz: 1d0f9deda83e4ec934b8bb0b9ca558c03c3a1f0e
5
5
  SHA512:
6
- metadata.gz: 266106f16b1d6d1c9c24fd25b9cbbff5083627169b553fa4dcf1e6f6e6d6da9e5e8c023ded0846352082b8d842066ccfba90e5cbc12e5d94214ee5f55171bd6f
7
- data.tar.gz: c868c165c92b60395b057e24b15d957462538961c0e985140efb4824c3b7227ec3f385101f12736055a8e9033b8ea7917ace0f8885dc87a88abc882041225855
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 %>
@@ -1,4 +1,4 @@
1
1
  # Namespace for our gem
2
2
  module ChefProvisioner
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel