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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61da959f51c5a4b9e55152f03ced727cffae6f86
|
4
|
+
data.tar.gz: 7322e797602f498c60a77f034419329bcb4cdda3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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 "
|
21
|
+
<%="environment \"#{environment}\"" if environment %>
|
22
22
|
chef_server_url "<%= server %>"
|
23
23
|
node_name "<%= node_name %>"
|
24
24
|
EOF
|