chef-provisioning 2.0.2 → 2.1.0

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: a1bc1e859a462acabc2a248dd6462ea7b62902da
4
- data.tar.gz: ab8dc99a7608c170e23ac3d9975e7d41b5938140
3
+ metadata.gz: 33c927ee5f44183c5b52a22c59bab1e92d62081f
4
+ data.tar.gz: 4cb6d6e544afb328d0c6d5c01cd25a1905dc7061
5
5
  SHA512:
6
- metadata.gz: 8b542abbc2d8de2e50a9c196fd85a6eb1ee103a4aa4dfca5609a9b8ce94e3ed324f3dee514858f2e2a6b479342d4844ddb5b46531a5ac07e5f8c9d7ff0759cd1
7
- data.tar.gz: 16522bee69800afefe3721b69940f0bde834fed38dfe5caf2827d7b636282cbf08b834edff5cca66f93b5a4526dc804171bbd213e472ef22d13cfd9cf57f1b47
6
+ metadata.gz: b2165f535bedfb4a428df2432df85a653ca0962c86704bde846b0a5225d2e7fe565e88777f6f4aead63f6807e750f466a9fecd49675fddadca93052133383b74
7
+ data.tar.gz: fa77197866bf680ef9fbddc56ccdb3e58d9907b81522a220732da4c881cce9a06d8ad2176abdad9348b8ea803bfd54b6c1b127c128295f56d64695e3c2d7308f
data/README.md CHANGED
@@ -143,8 +143,8 @@ Drivers each have their own repository. Current drivers:
143
143
  - [FOG: EC2, DigitalOcean, OpenStack, etc.](https://github.com/chef/chef-provisioning-fog)
144
144
 
145
145
  **Virtualization:**
146
- - [Vagrant: VirtualBox, VMWare Fusion, etc.](https://github.com/chef/chef-provisioning-vagrant)
147
- - [VSphere](https://github.com/CenturyLinkCloud/chef-provisioning-vsphere)
146
+ - [Vagrant: VirtualBox, VMware Fusion, etc.](https://github.com/chef/chef-provisioning-vagrant)
147
+ - [vSphere](https://github.com/CenturyLinkCloud/chef-provisioning-vsphere)
148
148
 
149
149
  **Containers:**
150
150
  - [Docker](https://github.com/chef/chef-provisioning-docker)
@@ -225,7 +225,7 @@ Individual drivers will often add their own driver specific config. For example
225
225
 
226
226
  ### Anatomy of a Recipe
227
227
 
228
- chef-zero comes with a provisioner for Vagrant, an abstraction that covers VirtualBox, VMWare and other Virtual Machine drivers. In docs/examples, you can run this to try it:
228
+ chef-zero comes with a provisioner for Vagrant, an abstraction that covers VirtualBox, VMware and other Virtual Machine drivers. In docs/examples, you can run this to try it:
229
229
 
230
230
  ```ruby
231
231
  export CHEF_DRIVER=vagrant
@@ -233,7 +233,7 @@ export VAGRANT_DEFAULT_PROVIDER=virtualbox
233
233
  chef-client -z vagrant_linux.rb simple.rb
234
234
  ```
235
235
 
236
- To use with VMWare, simply update the prior example to read ```export VAGRANT_DEFAULT_PROVIDER=vmware_fusion```
236
+ To use with VMware, simply update the prior example to read ```export VAGRANT_DEFAULT_PROVIDER=vmware_fusion```
237
237
 
238
238
  This is a chef-client run, which runs multiple **recipes.** Chef Provisioning is nothing but resources you put in recipes.
239
239
 
@@ -293,6 +293,20 @@ machine 'mario' do
293
293
  end
294
294
  ```
295
295
 
296
+ ### Configuring ACLs
297
+
298
+ If you want to run your provisionning recipes from an actual chef node, rather than from your workstation, you need to give that node's client enough rights to create the node and client he'll be provisioning on the chef server. Without those additional rights, the provisioning will fail with a error along the lines of `chef_client[mymachine] had an error: Net::HTTPServerException: 403 "Forbidden"`.
299
+
300
+ A clean solution to this problem is to use [knife-acl](https://github.com/chef/knife-acl) to define a `provisioners` group with the required rights, and add your client to it:
301
+
302
+ ```shellsession
303
+ $> chef gem install knife-acl
304
+ $> knife group create provisioners
305
+ $> knife acl add group provisioners containers clients read,create,update,delete,grant
306
+ $> knife acl add group provisioners containers nodes read,create,update,delete,grant
307
+ $> knife group add client my_provisioning_client_name provisioners
308
+ ```
309
+
296
310
  Kitchen
297
311
  -------
298
312
 
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.required_ruby_version = ">= 2.2.2"
16
16
 
17
- s.add_dependency 'net-ssh', '>= 2.9', '< 4.0'
17
+ s.add_dependency 'net-ssh', '>= 2.9', '< 5.0'
18
18
  s.add_dependency 'net-scp', '~> 1.0'
19
- s.add_dependency 'net-ssh-gateway', '~> 1.2.0'
19
+ s.add_dependency 'net-ssh-gateway', '~> 1.2'
20
20
  s.add_dependency 'inifile', '>= 2.0.2'
21
21
  s.add_dependency 'cheffish', '~> 4.0'
22
22
  s.add_dependency 'winrm-fs', '~> 1.0'
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Provisioning
3
- VERSION = '2.0.2'
3
+ VERSION = '2.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2017-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '2.9'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '4.0'
22
+ version: '5.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '2.9'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.0'
32
+ version: '5.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: net-scp
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.2.0
53
+ version: '1.2'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.2.0
60
+ version: '1.2'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: inifile
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -289,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  version: '0'
290
290
  requirements: []
291
291
  rubyforge_project:
292
- rubygems_version: 2.6.6
292
+ rubygems_version: 2.6.7
293
293
  signing_key:
294
294
  specification_version: 4
295
295
  summary: A library for creating machines and infrastructures idempotently in Chef.