chef-provisioner 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-provisioner/bootstrap.rb +2 -2
- data/lib/chef-provisioner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ffc3d6ee67cd9a08069f0fde0f18af5df7a6c92
|
4
|
+
data.tar.gz: 74bb11948822410ed7119ef9a5db76eb38c6429a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82277a899f543f9950064db262ebadfb784fb39d0159e8b49f0ac67054552453e04812085fc883a02c10f8ba24267f8afdced12bba0ca5e3fbcd975913a4632b
|
7
|
+
data.tar.gz: 8ee24301739161363ed96c4353b1c09b6452904a23cd455e243174dafa25cfe644c40368301b5c108ac24106e7a002d1847fb5afb991518b5fd62f326a6d108a
|
@@ -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, audit: false, force: false, retries:
|
12
|
+
def generate(node_name: '', chef_version: '12.4.1', environment: nil, server: '', first_boot: {}, reinstall: false, audit: false, force: false, retries: 1, 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
|
16
16
|
run_list = first_boot['run_list'] if first_boot['run_list']
|
17
17
|
first_boot.merge!( fqdn: node_name, chef_client: {config: {chef_server_url: server}} )
|
18
18
|
client_pem = get_client_key(node_name, run_list, force, retries)
|
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)
|
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, chef_cmd: chef_cmd)
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|