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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72e807e4b3685b5e238fdcff944f78f20e689d36f1e744bfa47788201b561fea
4
- data.tar.gz: c0d7e74a983374f5fb3ad88fe7f1d10dc80c9ab8c8f6bcef774030571ebe0e29
3
+ metadata.gz: 8909e50949ae38efda3547bb516fd6913022d55f1ec27e2771b1932bbd6888d5
4
+ data.tar.gz: 2085c957261844a51729d1ee4e5d5437b8081b5fa708b35c5afd2eb46ee3ac90
5
5
  SHA512:
6
- metadata.gz: d213972c29b938be1db778e1d177090e89ef39e71d50b1bc0ffbbfe1fdf5c5f6c8c1eb0bdd33b4264bbf9f55a1ac7f120f22edc8d9c8a3cc3ea412b380f70199
7
- data.tar.gz: eb0460c0a87bc8d9cd1e5571dc624579d6e17d68a9f2cf855dc27f104c096d2edaebba84f805942a910b231622987c5c3cb24f664c9d6a0ad410190a977099eb
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 "chefstyle", "2.0.8"
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
- # temporarily we only support building against master
18
- gem "chef", github: "chef/chef", branch: "master"
19
- gem "ohai", github: "chef/ohai", branch: "master"
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 "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed."
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
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency "chef-zero", ">= 14.0"
18
18
  s.add_dependency "chef-utils", ">= 17.0"
19
+ s.add_dependency "logger", "< 1.6.0"
19
20
  s.add_dependency "net-ssh"
20
21
 
21
22
  s.require_path = "lib"
@@ -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
 
@@ -7,7 +7,7 @@ require "chef/encrypted_data_bag_item"
7
7
  class Chef
8
8
  class Resource
9
9
  class ChefDataBagItem < Cheffish::BaseResource
10
- provides :chef_data_bag_item
10
+ provides :chef_data_bag_item, target_mode: true
11
11
 
12
12
  def initialize(*args)
13
13
  super
@@ -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_relative "../../cheffish/node_properties"
6
6
  class Chef
7
7
  class Resource
8
8
  class ChefNode < Cheffish::BaseResource
9
- provides :chef_node
9
+ provides :chef_node, target_mode: true
10
10
 
11
11
  include Cheffish::NodeProperties
12
12
 
@@ -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
@@ -4,7 +4,7 @@ require "chef_zero"
4
4
  class Chef
5
5
  class Resource
6
6
  class ChefResolvedCookbooks < Cheffish::BaseResource
7
- provides :chef_resolved_cookbooks
7
+ provides :chef_resolved_cookbooks, target_mode: true
8
8
 
9
9
  def initialize(*args)
10
10
  super
@@ -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|mingw32|windows/ && (@current_file_mode & 0077) != 0
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
@@ -6,7 +6,7 @@ require_relative "../../cheffish/key_formatter"
6
6
  class Chef
7
7
  class Resource
8
8
  class PublicKey < Cheffish::BaseResource
9
- provides :public_key
9
+ provides :public_key, target_mode: true
10
10
 
11
11
  allowed_actions :create, :delete, :nothing
12
12
  default_action :create
@@ -1,3 +1,3 @@
1
1
  module Cheffish
2
- VERSION = "17.1.5".freeze
2
+ VERSION = "17.1.8".freeze
3
3
  end
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.5
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: 2023-01-03 00:00:00.000000000 Z
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.1.4
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.