chef-sugar-ng 4.2.2 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chef/sugar/init.rb +1 -2
  3. data/lib/chef/sugar/version.rb +1 -1
  4. data/lib/chef/sugar/virtualization.rb +1 -1
  5. metadata +8 -68
  6. data/.github/lock.yml +0 -3
  7. data/.github/reaction.yml +0 -1
  8. data/.gitignore +0 -26
  9. data/.kitchen.yml +0 -16
  10. data/.travis.yml +0 -17
  11. data/CHANGELOG.md +0 -261
  12. data/CONTRIBUTING.md +0 -20
  13. data/Gemfile +0 -2
  14. data/README.md +0 -540
  15. data/Rakefile +0 -11
  16. data/chef-sugar-ng.gemspec +0 -33
  17. data/libraries/chef-sugar.rb +0 -1
  18. data/metadata.rb +0 -24
  19. data/recipes/default.rb +0 -20
  20. data/spec/spec_helper.rb +0 -25
  21. data/spec/support/shared_examples.rb +0 -20
  22. data/spec/unit/chef/sugar/architecture_spec.rb +0 -129
  23. data/spec/unit/chef/sugar/cloud_spec.rb +0 -149
  24. data/spec/unit/chef/sugar/constraints_spec.rb +0 -45
  25. data/spec/unit/chef/sugar/core_extensions/array_spec.rb +0 -10
  26. data/spec/unit/chef/sugar/core_extensions/object_spec.rb +0 -62
  27. data/spec/unit/chef/sugar/core_extensions/string_spec.rb +0 -48
  28. data/spec/unit/chef/sugar/data_bag_spec.rb +0 -118
  29. data/spec/unit/chef/sugar/docker_spec.rb +0 -39
  30. data/spec/unit/chef/sugar/init_spec.rb +0 -74
  31. data/spec/unit/chef/sugar/ip_spec.rb +0 -53
  32. data/spec/unit/chef/sugar/kernel_spec.rb +0 -16
  33. data/spec/unit/chef/sugar/kitchen_spec.rb +0 -18
  34. data/spec/unit/chef/sugar/node_spec.rb +0 -172
  35. data/spec/unit/chef/sugar/platform_family_spec.rb +0 -166
  36. data/spec/unit/chef/sugar/platform_spec.rb +0 -342
  37. data/spec/unit/chef/sugar/ruby_spec.rb +0 -39
  38. data/spec/unit/chef/sugar/run_context_spec.rb +0 -19
  39. data/spec/unit/chef/sugar/shell_spec.rb +0 -104
  40. data/spec/unit/chef/sugar/vagrant_spec.rb +0 -37
  41. data/spec/unit/chef/sugar/virtualization_spec.rb +0 -135
  42. data/spec/unit/recipes/default_spec.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e208d42237944b5de6cf604c300a02cab967703553265f857c66f1460be081bc
4
- data.tar.gz: cd5a6701ef2c331e85d808205fd49e31abbe0697379a1b5e57b327a04334752a
3
+ metadata.gz: 68c765fa255baebad109c12cd78fa6e60bd87192d43bcf294ea47fbc3b8bca7d
4
+ data.tar.gz: 1b6cdc7277d10f3e5054ab49079c27721cbdbc7056e0eb0f20df0ba5e73401f8
5
5
  SHA512:
6
- metadata.gz: d4b23f979610bb5b6e08e66de2c376af3dece2536685a4835aa46310480e144c76dcbb98ab55281f018749bff5f31607810c4cdd08eed22687cc2db3472501b2
7
- data.tar.gz: b644b1e971e18c33155db029c7e6e0e4e09a5eae4b6de6fca358ffae02d7e2228321acbaca1377888f10cd257b97750c9d128cec071c575aa7bca96f05bfea5d
6
+ metadata.gz: 18a13f262d24ca5992ac51d625fc9a0b681bb3e595935ae8b6a34a5e5dadada6c095126ef5d20385b6e9a114e042ccc56459fead359f3222c1404f6ac30e714c
7
+ data.tar.gz: 12572db52031f9ced435ea048d00a1984c17d2418dc92e511ecc55e2e60c0b46acede25753f8ea1c2d3bedd73af014ac5152a81711df5fe9d080a3e58c552add
@@ -25,8 +25,7 @@ class Chef
25
25
  # @return [Boolean]
26
26
  #
27
27
  def systemd?(node)
28
- file = '/proc/1/comm'
29
- File.exist?(file) && IO.read(file).chomp == 'systemd'
28
+ File.exist?('/bin/systemctl')
30
29
  end
31
30
 
32
31
  #
@@ -16,6 +16,6 @@
16
16
 
17
17
  class Chef
18
18
  module Sugar
19
- VERSION = '4.2.2'
19
+ VERSION = '5.0.1'
20
20
  end
21
21
  end
@@ -55,7 +55,7 @@ class Chef
55
55
  # otherwise
56
56
  #
57
57
  def parallels?(node)
58
- node.key?('virtualization') && node['virtualization']['system'] == 'Parallels'
58
+ node.key?('virtualization') && node['virtualization']['system'] == 'parallels'
59
59
  end
60
60
 
61
61
  #
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-sugar-ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Seth Vargo
7
+ - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -14,16 +14,16 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -89,18 +89,7 @@ executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - ".github/lock.yml"
93
- - ".github/reaction.yml"
94
- - ".gitignore"
95
- - ".kitchen.yml"
96
- - ".travis.yml"
97
- - CHANGELOG.md
98
- - CONTRIBUTING.md
99
- - Gemfile
100
92
  - LICENSE
101
- - README.md
102
- - Rakefile
103
- - chef-sugar-ng.gemspec
104
93
  - lib/chef/sugar.rb
105
94
  - lib/chef/sugar/architecture.rb
106
95
  - lib/chef/sugar/cloud.rb
@@ -126,33 +115,7 @@ files:
126
115
  - lib/chef/sugar/vagrant.rb
127
116
  - lib/chef/sugar/version.rb
128
117
  - lib/chef/sugar/virtualization.rb
129
- - libraries/chef-sugar.rb
130
- - metadata.rb
131
- - recipes/default.rb
132
- - spec/spec_helper.rb
133
- - spec/support/shared_examples.rb
134
- - spec/unit/chef/sugar/architecture_spec.rb
135
- - spec/unit/chef/sugar/cloud_spec.rb
136
- - spec/unit/chef/sugar/constraints_spec.rb
137
- - spec/unit/chef/sugar/core_extensions/array_spec.rb
138
- - spec/unit/chef/sugar/core_extensions/object_spec.rb
139
- - spec/unit/chef/sugar/core_extensions/string_spec.rb
140
- - spec/unit/chef/sugar/data_bag_spec.rb
141
- - spec/unit/chef/sugar/docker_spec.rb
142
- - spec/unit/chef/sugar/init_spec.rb
143
- - spec/unit/chef/sugar/ip_spec.rb
144
- - spec/unit/chef/sugar/kernel_spec.rb
145
- - spec/unit/chef/sugar/kitchen_spec.rb
146
- - spec/unit/chef/sugar/node_spec.rb
147
- - spec/unit/chef/sugar/platform_family_spec.rb
148
- - spec/unit/chef/sugar/platform_spec.rb
149
- - spec/unit/chef/sugar/ruby_spec.rb
150
- - spec/unit/chef/sugar/run_context_spec.rb
151
- - spec/unit/chef/sugar/shell_spec.rb
152
- - spec/unit/chef/sugar/vagrant_spec.rb
153
- - spec/unit/chef/sugar/virtualization_spec.rb
154
- - spec/unit/recipes/default_spec.rb
155
- homepage: https://github.com/chef/chef-sugar
118
+ homepage: https://github.com/sethvargo/chef-sugar
156
119
  licenses:
157
120
  - Apache 2.0
158
121
  metadata: {}
@@ -176,27 +139,4 @@ signing_key:
176
139
  specification_version: 4
177
140
  summary: A collection of helper methods and modules that make working with Chef recipes
178
141
  awesome.
179
- test_files:
180
- - spec/spec_helper.rb
181
- - spec/support/shared_examples.rb
182
- - spec/unit/chef/sugar/architecture_spec.rb
183
- - spec/unit/chef/sugar/cloud_spec.rb
184
- - spec/unit/chef/sugar/constraints_spec.rb
185
- - spec/unit/chef/sugar/core_extensions/array_spec.rb
186
- - spec/unit/chef/sugar/core_extensions/object_spec.rb
187
- - spec/unit/chef/sugar/core_extensions/string_spec.rb
188
- - spec/unit/chef/sugar/data_bag_spec.rb
189
- - spec/unit/chef/sugar/docker_spec.rb
190
- - spec/unit/chef/sugar/init_spec.rb
191
- - spec/unit/chef/sugar/ip_spec.rb
192
- - spec/unit/chef/sugar/kernel_spec.rb
193
- - spec/unit/chef/sugar/kitchen_spec.rb
194
- - spec/unit/chef/sugar/node_spec.rb
195
- - spec/unit/chef/sugar/platform_family_spec.rb
196
- - spec/unit/chef/sugar/platform_spec.rb
197
- - spec/unit/chef/sugar/ruby_spec.rb
198
- - spec/unit/chef/sugar/run_context_spec.rb
199
- - spec/unit/chef/sugar/shell_spec.rb
200
- - spec/unit/chef/sugar/vagrant_spec.rb
201
- - spec/unit/chef/sugar/virtualization_spec.rb
202
- - spec/unit/recipes/default_spec.rb
142
+ test_files: []
@@ -1,3 +0,0 @@
1
- daysUntilLock: 90
2
- lockLabel: false
3
- lockComment: false
@@ -1 +0,0 @@
1
- reactionComment: false
data/.gitignore DELETED
@@ -1,26 +0,0 @@
1
- *~
2
- *#
3
- .#*
4
- \#*#
5
- .*.sw[a-z]
6
- *.un~
7
- *.tmp
8
- *.bk
9
- *.bkup
10
- .kitchen.local.yml
11
- Berksfile.lock
12
- Gemfile.lock
13
-
14
- .bundle/
15
- .cache/
16
- .kitchen/
17
- .vagrant/
18
- .vagrant.d/
19
- .yardoc/
20
- bin/
21
- coverage/
22
- doc/
23
- pkg/
24
- tmp/
25
- vendor/
26
- .rspec
@@ -1,16 +0,0 @@
1
- driver:
2
- name: vagrant
3
-
4
- provisioner:
5
- name: chef_zero
6
- deprecations_as_errors: true
7
-
8
- platforms:
9
- - name: centos-6
10
- - name: centos-7
11
- - name: ubuntu-14.04
12
- - name: ubuntu-16.04
13
-
14
- suites:
15
- - name: default
16
- run_list: chef-sugar::default
@@ -1,17 +0,0 @@
1
- sudo: false
2
-
3
- rvm:
4
- - 2.2.9
5
- - 2.3.6
6
- - 2.4.3
7
- - 2.5.0
8
-
9
- branches:
10
- only:
11
- - master
12
-
13
- cache: bundler
14
-
15
- bundler_args: --jobs 7
16
-
17
- script: bundle exec rake
@@ -1,261 +0,0 @@
1
- # Chef Sugar Changelog
2
-
3
- This file is used to list changes made in each version of the chef-sugar cookbook and gem.
4
-
5
- ## v4.2.1 (2018-12-06)
6
-
7
- - Repackaged with an older stove to remove the metadata.rb on the Supermarket for older chef-client releases
8
-
9
- ## v4.2.0 (2018-12-05)
10
-
11
- - Added a new parallels? helper
12
- - Added support for the Raspberry Pi 1 and Zero to armhf? helper
13
- - Added a centos_final? helper
14
-
15
- ## v4.1.0 (2018-08-16)
16
-
17
- - Improve the detection of linux hosts with the linux? helper. Amazon Linux and obscure distros will now be properly detected.
18
-
19
- ## v4.0.1 (2018-08-09)
20
-
21
- - Add new Debian, Mint, macOS codenames
22
- - Add new Ubuntu codenames: artful, bionic, cosmic
23
-
24
- ## v4.0.0 (2018-01-26)
25
-
26
- - Require Ruby 2.2 or later and Chef 12.10 or later
27
- - Cookbook now installs the chef-sugar gem via a metadata installation so chef-sugar::default on your runlist is no longer needed
28
- - Added additional metadata to the cookbook: supports, issue_url, source_url, chef_version.
29
- - Requirements improved in the readme
30
-
31
- ## v3.6.0 (2017-10-26)
32
-
33
- - Add Ubuntu zesty and debian stretch detection
34
- - Add softlayer? helper
35
- - Add aarch64? helper
36
-
37
- ## v3.5.0 (2016-07-12)
38
-
39
- - Improve the systemd check to not fail on older kernels or Windows hosts
40
- - Add detection of macOS 10.11 and 10.12
41
-
42
- ## v3.4.0 (2016-07-18)
43
-
44
- ### Improvements
45
-
46
- - Add `virtual?` and `physical?` methods
47
- - Add Scaleway C1 server (arm arch) support
48
- - Add IMB s390x support
49
- - Add missing Ubuntu release names
50
-
51
- ### Bug Fixes
52
-
53
- - Drop Ruby 2.0.0 support from Travis test matrix
54
- - Pin to Rack 1.6 (dev dep)
55
-
56
- ## v3.3.0 (2016-01-11)
57
-
58
- ### Improvements
59
-
60
- - Break up `Chef::Sugar::Constraints` into a class and a dsl file
61
- - Add `platform_version` method with full constraints comparison support
62
-
63
- ## v3.2.0 (2015-12-10)
64
-
65
- ### Improvements
66
-
67
- - Add platform matchers for `debian` and `fedora`
68
- - Add `openvz` support under virtualization
69
- - Add init system detection support
70
- - Add support for `nexus`, `ios_xr` platforms and `wrlinux` platform_family
71
- - Add additional `aix` helpers
72
-
73
- ### Bug Fixes
74
-
75
- - Properly expose `Architecture#i386?` in the DSL
76
-
77
- ## v3.1.1 (2015-06-23)
78
-
79
- ### Improvements
80
-
81
- - Update Intel CPU types based on existing Fauxhai data
82
- - Update SPARC logic and 32/64-bit logic for x86 and i386
83
-
84
- ### Bug Fixes
85
-
86
- - Fix 32-bit logic
87
- - Fix default behavior to include chef-sugar at compile time
88
- - Fix Chef 12.1.0 warnings for chef_gem compile time install
89
- - Fix `redhat_enterprise_linux?` matcher
90
-
91
- ## v3.0.2 (2015-03-26)
92
-
93
- ### Improvements
94
-
95
- - Add helpers for `ppc64` and `ppc64le` architecture
96
-
97
- ### Bug Fixes
98
-
99
- - Adjustments to error message
100
-
101
- ## v3.0.1 (2015-03-20)
102
-
103
- ### Breaking Changes
104
-
105
- - Rename `compile_time` `to at_compile_time` - if your recipes are affected by this breaking change, your Chef Client run will produce a verbose error message with details on how to fix the error.
106
-
107
- ## v3.0.0 (2015-03-17)
108
-
109
- ### Breaking Changes
110
-
111
- - Drop support for Ruby 1.9 (it might still work, but it is no longer officially supported)
112
-
113
- ### Improvements
114
-
115
- - Remove accidentially committed gem source
116
- - Bump development dependencies
117
- - Add `digitalocean?` matcher
118
- - Expose the `rhel` platform as `el`
119
- - Add `ppc64le` platform
120
- - Add helper for determining if architecture is SPARC
121
- - Add helper for determining if architecture is Intel
122
- - Add dynamic platform/version matchers for Solaris
123
-
124
- ### Bug Fixes
125
-
126
- - Reset namespace_options when reaching top-level resources
127
-
128
- ## v2.5.0 (2015-01-05)
129
-
130
- ### Improvements
131
-
132
- - Add `data_bag_item_for_environment` function
133
- - Add `kvm?` matcher
134
- - Add `virtualbox?` matcher
135
-
136
- ### Bug Fixes
137
-
138
- - Use `.key?` to check for hash key presence, raising an `AttributeDoesNotExist` error sooner
139
-
140
- ## v2.4.1 (2014-10-12)
141
-
142
- - No changes from v2.4.0 - forced a new version upload to the Chef Supermarket
143
-
144
- ## v2.4.0 (2014-10-12)
145
-
146
- ### Improvements
147
-
148
- - Add `docker?` matcher
149
-
150
- ## v2.3.2 (2014-10-07)
151
-
152
- ### Big Fixues
153
-
154
- - Include `amd64` in `_64_bit?` check
155
-
156
- ## v2.3.1 (2014-10-07)
157
-
158
- ### Improvements
159
-
160
- - Check all 64-bit architectures that may be reported by Ohai
161
-
162
- ### Bug Fixes
163
-
164
- - Be more tolerant of `nil` values return from sub functions
165
- - Check to make sure `node['domain']` is not `nil` before calling `#include?`
166
-
167
- ## v2.3.0 (2014-09-24)
168
-
169
- ### Improvements
170
-
171
- - Add `vmware?` matcher
172
- - Allow the attribute DSL to access parent attributes
173
-
174
- ### Bug Fixes
175
-
176
- - Return `true` or `false` from all Boolean methods (instead of `nil` or truthy values)
177
-
178
- ## v2.2.0 (2014-08-20)
179
-
180
- ### Improvements
181
-
182
- - Add `smartos?` matcher
183
- - Add `omnios?` matcher
184
-
185
- ## v2.1.0 (2014-06-26)
186
-
187
- ### Improvements
188
-
189
- - Add `solaris2?` matcher
190
- - Add `aix?` matcher
191
- - Add 'lxc?' matcher
192
-
193
- ### Bug Fixes
194
-
195
- - Fix a bug in namespace memoization during attribute initialization
196
-
197
- ## v2.0.0 (2014-06-16)
198
-
199
- ### Breaking
200
-
201
- - Remove `not_linux?` method
202
- - Remove `not_windows?` method
203
-
204
- ### Improvements
205
-
206
- - Miscellaneous spelling fixes
207
- - Update a failing unit test for `installed?`
208
- - Add Mac OS X to the list of platforms (Yosemite)
209
- - Upgrade to RSpec 3
210
- - Fix `which` (and `installed?` and `installed_at_version?`) when given an absolute path
211
- - Fix `linux?` check to only return true on real linuxes
212
-
213
- ## v1.3.0 (2014-05-05)
214
-
215
- - Check both `$stdout` and `$stderr` in `version_for`
216
- - Add additional platform versions
217
- - Make `includes_recipe?` a top-level API (instead of just Node)
218
- - Match on the highest version number instead of direct equality checking on platform versions
219
- - Define `Object#blank?` as a core extension
220
- - Define `String#flush` as a core extension
221
- - Remove Stove
222
-
223
- ## v1.2.6 (2014-03-16)
224
-
225
- - Fix a bug in `vagrant?` returning false on newer Vagrant versions
226
- - Remove Coveralls
227
-
228
- ## v1.2.4 (2014-03-13)
229
-
230
- - See (1.2.2), but I botched the release
231
-
232
- ## v1.2.2 (2014-03-13)
233
-
234
- - Fix a critical bug with `encrypted_data_bag_item` using the wrong key
235
-
236
- ## v1.2.0 (2014-03-09)
237
-
238
- - Add `namespace` functionality for specifying attributes in a DSL
239
- - Add constraints helpers for comparing version strings
240
- - Add `require_chef_gem` to safely require and degrade if a gem is not installed
241
- - Add `deep_fetch` and `deep_fetch!` to fetch deeply nested keys
242
- - Accept an optional secret key in `encrypted_data_bag_item` helper and raise a helpful error if one is not set (NOTE: this changes the airity of the method, but it's backward-compatible because Ruby is magic)
243
- - Add Stove for releasing
244
- - Updated copyrights for 2014
245
-
246
- ## v1.1.0 (2013-12-10)
247
-
248
- - Add `cloudstack?` helper
249
- - Add data bag helpers
250
- - Remove foodcritic checks
251
- - Upgrade development gem versions
252
- - Randomize spec order
253
-
254
- ## v1.0.1 (2013-10-15)
255
-
256
- - Add development recipe
257
- - Add `compile_time`, `before`, and `after` filters
258
-
259
- ## v1.0.0 (2013-10-15)
260
-
261
- - First public release