cheffish 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef/provider/chef_mirror.rb +1 -1
- data/lib/chef/provider/chef_user.rb +1 -0
- data/lib/chef/resource/chef_user.rb +1 -0
- data/lib/cheffish/version.rb +1 -1
- data/lib/cheffish.rb +2 -2
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f7effb9feff17c98c38172fcce48b2dc65b538a
|
4
|
+
data.tar.gz: 050c00b286437574276e7b10a4e5fac430823756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 002bf3474f05d454bc3e482dd00481bb7954b634ac02623420dab97b54efc09599096ef2230dcb0716ee5a3f517f9187d0ac5b09b254840ddd577616ad2919c9
|
7
|
+
data.tar.gz: b47b797b32d7e459d7ddf95ddd737c61063c647a5d03e60856ad9ef3267402624992a1b2453b2114957dcd48fac02fca2c6c346a029963821880dc57f9831d61
|
@@ -108,7 +108,7 @@ class Chef::Provider::ChefMirror < Chef::Provider::LWRPBase
|
|
108
108
|
config = {
|
109
109
|
:chef_server_url => new_resource.chef_server[:chef_server_url],
|
110
110
|
:node_name => new_resource.chef_server[:options][:client_name],
|
111
|
-
:client_key => new_resource.chef_server[:options][:
|
111
|
+
:client_key => new_resource.chef_server[:options][:signing_key_filename],
|
112
112
|
:repo_mode => repo_mode,
|
113
113
|
:versioned_cookbooks => Chef::Config.versioned_cookbooks
|
114
114
|
}
|
@@ -15,6 +15,7 @@ class Chef::Resource::ChefUser < Chef::Resource::LWRPBase
|
|
15
15
|
|
16
16
|
# Client attributes
|
17
17
|
attribute :name, :kind_of => String, :regex => Cheffish::NAME_REGEX, :name_attribute => true
|
18
|
+
attribute :display_name, :kind_of => String
|
18
19
|
attribute :admin, :kind_of => [TrueClass, FalseClass]
|
19
20
|
attribute :email, :kind_of => String
|
20
21
|
attribute :external_authentication_uid
|
data/lib/cheffish/version.rb
CHANGED
data/lib/cheffish.rb
CHANGED
@@ -57,7 +57,7 @@ module Cheffish
|
|
57
57
|
Cheffish.profiled_config(chef_config)
|
58
58
|
end
|
59
59
|
|
60
|
-
def self.honor_local_mode(local_mode_default = true)
|
60
|
+
def self.honor_local_mode(local_mode_default = true, &block)
|
61
61
|
if !Chef::Config.has_key?(:local_mode) && !local_mode_default.nil?
|
62
62
|
Chef::Config.local_mode = local_mode_default
|
63
63
|
end
|
@@ -211,7 +211,7 @@ module Cheffish
|
|
211
211
|
raise ArgumentError, "At least one role must be specified"
|
212
212
|
end
|
213
213
|
@run_list_removers ||= []
|
214
|
-
@run_list_removers += roles.map { |
|
214
|
+
@run_list_removers += roles.map { |role| Chef::RunList::RunListItem.new("role[#{role}]") }
|
215
215
|
end
|
216
216
|
end
|
217
217
|
end
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheffish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Keiser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-zero
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
55
|
description: A library to manipulate Chef in Chef.
|
@@ -60,9 +60,9 @@ extra_rdoc_files:
|
|
60
60
|
- README.md
|
61
61
|
- LICENSE
|
62
62
|
files:
|
63
|
+
- Rakefile
|
63
64
|
- LICENSE
|
64
65
|
- README.md
|
65
|
-
- Rakefile
|
66
66
|
- lib/chef/provider/chef_acl.rb
|
67
67
|
- lib/chef/provider/chef_client.rb
|
68
68
|
- lib/chef/provider/chef_container.rb
|
@@ -93,7 +93,6 @@ files:
|
|
93
93
|
- lib/chef/resource/chef_user.rb
|
94
94
|
- lib/chef/resource/private_key.rb
|
95
95
|
- lib/chef/resource/public_key.rb
|
96
|
-
- lib/cheffish.rb
|
97
96
|
- lib/cheffish/actor_provider_base.rb
|
98
97
|
- lib/cheffish/basic_chef_client.rb
|
99
98
|
- lib/cheffish/chef_provider_base.rb
|
@@ -105,6 +104,7 @@ files:
|
|
105
104
|
- lib/cheffish/server_api.rb
|
106
105
|
- lib/cheffish/version.rb
|
107
106
|
- lib/cheffish/with_pattern.rb
|
107
|
+
- lib/cheffish.rb
|
108
108
|
- spec/functional/fingerprint_spec.rb
|
109
109
|
- spec/functional/merged_config_spec.rb
|
110
110
|
- spec/integration/chef_acl_spec.rb
|
@@ -130,17 +130,17 @@ require_paths:
|
|
130
130
|
- lib
|
131
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
|
-
- -
|
133
|
+
- - '>='
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- -
|
138
|
+
- - '>='
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.0.14
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: A library to manipulate Chef in Chef.
|