cheffish 17.1.5 → 17.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +15 -4
- data/Rakefile +2 -2
- data/cheffish.gemspec +1 -0
- data/lib/chef/resource/chef_acl.rb +1 -1
- data/lib/chef/resource/chef_client.rb +1 -1
- data/lib/chef/resource/chef_container.rb +1 -1
- data/lib/chef/resource/chef_data_bag.rb +1 -1
- data/lib/chef/resource/chef_data_bag_item.rb +1 -1
- data/lib/chef/resource/chef_environment.rb +1 -1
- data/lib/chef/resource/chef_group.rb +1 -1
- data/lib/chef/resource/chef_mirror.rb +1 -1
- data/lib/chef/resource/chef_node.rb +1 -1
- data/lib/chef/resource/chef_organization.rb +1 -1
- data/lib/chef/resource/chef_resolved_cookbooks.rb +1 -1
- data/lib/chef/resource/chef_role.rb +1 -1
- data/lib/chef/resource/chef_user.rb +1 -1
- data/lib/chef/resource/private_key.rb +2 -4
- data/lib/chef/resource/public_key.rb +1 -1
- data/lib/cheffish/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8909e50949ae38efda3547bb516fd6913022d55f1ec27e2771b1932bbd6888d5
|
4
|
+
data.tar.gz: 2085c957261844a51729d1ee4e5d5437b8081b5fa708b35c5afd2eb46ee3ac90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee66506ac2a7985c5e38d341a1de8c6e354b286758411755032b7f89cc1e41ffd39eb3076afa7abf8337f98be9d86c6f4d1093b42609b670aada0afa0587f35
|
7
|
+
data.tar.gz: 7eaa3272587e33aa326b89d556e51829fb60a7a00024bbb4f5c59d451d0d86a76c018dd5a21d05c36745276be1961a7efb09e5e867240a11170c55faf384939b
|
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@ source "https://rubygems.org"
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem "
|
6
|
+
gem "cookstyle", "~> 7.32.8"
|
7
7
|
gem "rake"
|
8
8
|
gem "rspec", "~> 3.0"
|
9
9
|
end
|
@@ -14,8 +14,19 @@ if ENV["GEMFILE_MOD"]
|
|
14
14
|
instance_eval(ENV["GEMFILE_MOD"])
|
15
15
|
else
|
16
16
|
group :development do
|
17
|
-
#
|
18
|
-
|
19
|
-
|
17
|
+
# chef 17 is on 3.0
|
18
|
+
# chef 18 is on 3.1
|
19
|
+
case RUBY_VERSION
|
20
|
+
when /^3\.0/
|
21
|
+
gem "chef", "~> 17.0"
|
22
|
+
gem "ohai", "~> 17.0"
|
23
|
+
when /^3\.1/
|
24
|
+
gem "chef", "~> 18.0"
|
25
|
+
gem "ohai", "~> 18.0"
|
26
|
+
else
|
27
|
+
# go with the latest, unbounded
|
28
|
+
gem "chef"
|
29
|
+
gem "ohai"
|
30
|
+
end
|
20
31
|
end
|
21
32
|
end
|
data/Rakefile
CHANGED
@@ -14,14 +14,14 @@ rescue LoadError
|
|
14
14
|
end
|
15
15
|
|
16
16
|
begin
|
17
|
-
require "chefstyle"
|
17
|
+
require "cookstyle/chefstyle"
|
18
18
|
require "rubocop/rake_task"
|
19
19
|
desc "Run Chefstyle tests"
|
20
20
|
RuboCop::RakeTask.new(:style) do |task|
|
21
21
|
task.options += ["--display-cop-names", "--no-color"]
|
22
22
|
end
|
23
23
|
rescue LoadError
|
24
|
-
puts "
|
24
|
+
puts "cookstyle gem is not installed. bundle install first to make sure all dependencies are installed."
|
25
25
|
end
|
26
26
|
|
27
27
|
begin
|
data/cheffish.gemspec
CHANGED
@@ -9,7 +9,7 @@ using ChefUtils::ParallelMap
|
|
9
9
|
class Chef
|
10
10
|
class Resource
|
11
11
|
class ChefAcl < Cheffish::BaseResource
|
12
|
-
provides :chef_acl
|
12
|
+
provides :chef_acl, target_mode: true
|
13
13
|
|
14
14
|
# Path of the thing being secured, e.g. nodes, nodes/*, nodes/mynode,
|
15
15
|
# */*, **, roles/base, data/secrets, cookbooks/apache2, /users/*,
|
@@ -4,7 +4,7 @@ require_relative "../../cheffish/chef_actor_base"
|
|
4
4
|
class Chef
|
5
5
|
class Resource
|
6
6
|
class ChefClient < Cheffish::ChefActorBase
|
7
|
-
provides :chef_client
|
7
|
+
provides :chef_client, target_mode: true
|
8
8
|
|
9
9
|
# Client attributes
|
10
10
|
property :chef_client_name, Cheffish::NAME_REGEX, name_property: true
|
@@ -5,7 +5,7 @@ require "chef/chef_fs/data_handler/container_data_handler"
|
|
5
5
|
class Chef
|
6
6
|
class Resource
|
7
7
|
class ChefContainer < Cheffish::BaseResource
|
8
|
-
provides :chef_container
|
8
|
+
provides :chef_container, target_mode: true
|
9
9
|
|
10
10
|
property :chef_container_name, Cheffish::NAME_REGEX, name_property: true
|
11
11
|
|
@@ -4,7 +4,7 @@ require_relative "../../cheffish/base_resource"
|
|
4
4
|
class Chef
|
5
5
|
class Resource
|
6
6
|
class ChefDataBag < Cheffish::BaseResource
|
7
|
-
provides :chef_data_bag
|
7
|
+
provides :chef_data_bag, target_mode: true
|
8
8
|
|
9
9
|
property :data_bag_name, Cheffish::NAME_REGEX, name_property: true
|
10
10
|
|
@@ -6,7 +6,7 @@ require "chef/chef_fs/data_handler/environment_data_handler"
|
|
6
6
|
class Chef
|
7
7
|
class Resource
|
8
8
|
class ChefEnvironment < Cheffish::BaseResource
|
9
|
-
provides :chef_environment
|
9
|
+
provides :chef_environment, target_mode: true
|
10
10
|
|
11
11
|
property :environment_name, Cheffish::NAME_REGEX, name_property: true
|
12
12
|
property :description, String
|
@@ -6,7 +6,7 @@ require "chef/chef_fs/data_handler/group_data_handler"
|
|
6
6
|
class Chef
|
7
7
|
class Resource
|
8
8
|
class ChefGroup < Cheffish::BaseResource
|
9
|
-
provides :chef_group
|
9
|
+
provides :chef_group, target_mode: true
|
10
10
|
|
11
11
|
property :group_name, Cheffish::NAME_REGEX, name_property: true
|
12
12
|
property :users, ArrayType
|
@@ -11,7 +11,7 @@ using ChefUtils::ParallelMap
|
|
11
11
|
class Chef
|
12
12
|
class Resource
|
13
13
|
class ChefMirror < Cheffish::BaseResource
|
14
|
-
provides :chef_mirror
|
14
|
+
provides :chef_mirror, target_mode: true
|
15
15
|
|
16
16
|
# Path of the data to mirror, e.g. nodes, nodes/*, nodes/mynode,
|
17
17
|
# */*, **, roles/base, data/secrets, cookbooks/apache2, etc.
|
@@ -6,7 +6,7 @@ require "chef/chef_fs/data_handler/data_handler_base"
|
|
6
6
|
class Chef
|
7
7
|
class Resource
|
8
8
|
class ChefOrganization < Cheffish::BaseResource
|
9
|
-
provides :chef_organization
|
9
|
+
provides :chef_organization, target_mode: true
|
10
10
|
|
11
11
|
property :organization_name, Cheffish::NAME_REGEX, name_property: true
|
12
12
|
property :full_name, String
|
@@ -6,7 +6,7 @@ require "chef/chef_fs/data_handler/role_data_handler"
|
|
6
6
|
class Chef
|
7
7
|
class Resource
|
8
8
|
class ChefRole < Cheffish::BaseResource
|
9
|
-
provides :chef_role
|
9
|
+
provides :chef_role, target_mode: true
|
10
10
|
|
11
11
|
property :role_name, Cheffish::NAME_REGEX, name_property: true
|
12
12
|
property :description, String
|
@@ -4,7 +4,7 @@ require_relative "../../cheffish/chef_actor_base"
|
|
4
4
|
class Chef
|
5
5
|
class Resource
|
6
6
|
class ChefUser < Cheffish::ChefActorBase
|
7
|
-
provides :chef_user
|
7
|
+
provides :chef_user, target_mode: true
|
8
8
|
|
9
9
|
# Client attributes
|
10
10
|
property :user_name, Cheffish::NAME_REGEX, name_property: true
|
@@ -6,7 +6,7 @@ require_relative "../../cheffish/key_formatter"
|
|
6
6
|
class Chef
|
7
7
|
class Resource
|
8
8
|
class PrivateKey < Cheffish::BaseResource
|
9
|
-
provides :private_key
|
9
|
+
provides :private_key, target_mode: true
|
10
10
|
|
11
11
|
allowed_actions :create, :delete, :regenerate, :nothing
|
12
12
|
default_action :create
|
@@ -93,7 +93,6 @@ class Chef
|
|
93
93
|
(!current_private_key ||
|
94
94
|
current_resource.size != new_resource.size ||
|
95
95
|
current_resource.type != new_resource.type))
|
96
|
-
|
97
96
|
case new_resource.type
|
98
97
|
when :rsa
|
99
98
|
if new_resource.exponent
|
@@ -137,7 +136,7 @@ class Chef
|
|
137
136
|
converge_by "change format of #{new_resource.type} private key #{new_path} from #{current_resource.format} to #{new_resource.format}" do
|
138
137
|
write_private_key(current_private_key)
|
139
138
|
end
|
140
|
-
elsif RUBY_PLATFORM !~ /mswin|
|
139
|
+
elsif RUBY_PLATFORM !~ /mswin|mingw|windows/ && (@current_file_mode & 0077) != 0
|
141
140
|
new_mode = @current_file_mode & 07700
|
142
141
|
converge_by "change mode of private key #{new_path} to #{new_mode.to_s(8)}" do
|
143
142
|
::File.chmod(new_mode, new_path)
|
@@ -249,7 +248,6 @@ class Chef
|
|
249
248
|
else
|
250
249
|
resource.action :delete
|
251
250
|
end
|
252
|
-
|
253
251
|
@current_resource = resource
|
254
252
|
end
|
255
253
|
end
|
data/lib/cheffish/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheffish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 17.1.
|
4
|
+
version: 17.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-zero
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '17.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: logger
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.6.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.6.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: net-ssh
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
155
|
- !ruby/object:Gem::Version
|
142
156
|
version: '0'
|
143
157
|
requirements: []
|
144
|
-
rubygems_version: 3.
|
158
|
+
rubygems_version: 3.2.3
|
145
159
|
signing_key:
|
146
160
|
specification_version: 4
|
147
161
|
summary: A set of Chef resources for configuring Chef Infra.
|