chef-provisioner 0.0.1 → 0.0.2
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 +4 -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: 2c4edcc1a79fb1bc9ca177c4f54714240f47c1bb
|
4
|
+
data.tar.gz: db5b61b7d70c4fe13ff82b39dd031f74de2465fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9869456281e71f8cbd70f07c0e5c1b9ac22c6b69813a8c55608dd5a7bf893948fd2409b2b2cfa625ac39e9c0a0d74d3491e78dfca0fd82d273b6157ac231c2
|
7
|
+
data.tar.gz: 27ee3fa2da17200f3a6b36ce5c3b3fe2c8b2f32bd4ec8d36fc3d9046bc7bbe2cb489afacf7b98b11b656cad7aa36eefa32e3763d6e8730d5608282bd3d648c2d
|
@@ -9,8 +9,10 @@ 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(
|
13
|
-
|
12
|
+
def generate(node_name: '', chef_version: '12.4.1', environment: 'default', server: 'localhost', first_boot: {})
|
13
|
+
node_name = node_name.strip
|
14
|
+
client_pem = ChefProvisioner::Chef.init_server(node_name)
|
15
|
+
render(node_name: node_name, client_pem: client_pem, chef_version: chef_version, environment: environment, server: server, first_boot: first_boot)
|
14
16
|
end
|
15
17
|
|
16
18
|
private
|