chef-provisioner 0.0.3 → 0.0.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: 86997a88533b3e75be015e2440a02db72f719940
4
- data.tar.gz: 518641adae9546662be651a576b64c35425d32a4
3
+ metadata.gz: 61da959f51c5a4b9e55152f03ced727cffae6f86
4
+ data.tar.gz: 7322e797602f498c60a77f034419329bcb4cdda3
5
5
  SHA512:
6
- metadata.gz: 571b5045428532ad64e0c1062ee6b78ffe3af9155cb9ef1277acfc19354143b88998229ddfb914fc41bbe82158a0b063fff0d7c28c9c042ad66eec9013178bee
7
- data.tar.gz: 68b9f6c65037d6b6c1198271d758c38f61f0eb0c5204292c1250c17cc42342faa9dd8ffa03e5605bd76f4f65c03a649c81ae7528d0e12e9f6822df0af1fa5409
6
+ metadata.gz: fd23d797a5a8a223e8cc07e0837c8906f165dbb466106404902026d09e5e6e2230383499c170ad03b5233d6ecc0a4249894f85358fe361014895c8f72ec332a9
7
+ data.tar.gz: 699a4e73d9d9d33a2ef94522a2fcc8a7f9017a33082892958c499f9c51e4c2258b3f38ee55e69fbcd0a7397dcbcddc7047e858b6667b3153e59f5dd55095d71d
@@ -9,7 +9,7 @@ module ChefProvisioner
9
9
  extend self
10
10
  BOOTSTRAP_TEMPLATE = File.read(File.expand_path('../../chef-provisioner/templates/bootstrap.erb', __FILE__)).freeze
11
11
 
12
- def generate(node_name: '', chef_version: '12.4.1', environment: 'default', server: '', first_boot: {})
12
+ def generate(node_name: '', chef_version: '12.4.1', environment: nil, server: '', first_boot: {})
13
13
  node_name = node_name.strip
14
14
  server = ChefAPI.endpoint if server.empty?
15
15
  client_pem = ChefProvisioner::Chef.init_server(node_name)
@@ -18,7 +18,7 @@ cat > /etc/chef/client.rb <<EOF
18
18
  log_level :info
19
19
  log_location STDOUT
20
20
  ssl_verify_mode :verify_peer
21
- environment "<%= environment %>"
21
+ <%="environment \"#{environment}\"" if environment %>
22
22
  chef_server_url "<%= server %>"
23
23
  node_name "<%= node_name %>"
24
24
  EOF
@@ -1,4 +1,4 @@
1
1
  # Namespace for our gem
2
2
  module ChefProvisioner
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.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.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel