onceover 3.7.0 → 3.8.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: 845de07b223e216322db6f66c73ca4acdfc11008
4
- data.tar.gz: 9053cda4788a18831d766964a646f6df398a1948
3
+ metadata.gz: 760bc0e986513a337cfe07a8808d5aca8cae1675
4
+ data.tar.gz: 7ed6e0c9d5278aef45ddc95f8e136793ff5a1236
5
5
  SHA512:
6
- metadata.gz: f3cda7b26885b7d6a9fa968221c3ec2bfd87704c6ae5e134209d0d5b8867fbe9ae5252638faaac2ec5eea1c494d2182a29a05bbe7d12f0fe8d0d0a99f560d2c2
7
- data.tar.gz: 9e1902377712e249532d6b5b8e69619fcdd4831a6d5a95d0b7af8ffd47b40095b5ea5918442531bc8336b773f720e329a2268dcdf6f846504d983ddd447451b1
6
+ metadata.gz: 88ae6311f20abb1a997cf68e547de5a7d0b62bac25ac07152f035fcb39061e7f31a2fbee1b998f0f1f972429a1765c89af1508a1fa890854b2b49c53b9fc2548
7
+ data.tar.gz: 3064ffc747c54d87125feefafb5cb42b031278ad9dd94738c5f0ea750039e97904dc2d7c3df2dee357f338270106badbccf499d5b5faf25c75e1c67a9c892539
data/README.md CHANGED
@@ -94,9 +94,9 @@ Hopefully this config file will be fairly self explanatory once you see it, but
94
94
 
95
95
  **nodes:** The nodes that we want to test against. The nodes that we list here map directly to either a [factset](#factsets) or a [nodeset](#nodesets) depending on weather we are running spec or acceptance tests respectively.
96
96
 
97
- **node_groups:** The `node_groups` section is just for saving us some typing. Here we can set up groups of nodes which we can then refer to in our test matrix. We can create groups by simply specifying an array of servers to be in the group, or we can use the subtractive *include/exclude* syntax.
97
+ **node_groups:** The `node_groups` section is just for saving us some typing. Here we can set up groups of nodes which we can then refer to in our test matrix. We can create groups by simply specifying an array of servers to be in the group, or we can use the subtractive *include/exclude* syntax. The names used for the actual `class_groups` and `node_groups` must be unique.
98
98
 
99
- **class_groups:** The `class_groups` section is much the same as the `node_groups` sections, except that it creates groups of classes, not groups of nodes (duh). All the same rules apply and you can also use the *include/exclude* syntax. This, like the classes section can also accept regular expressions. This means that as long as you name your roles according to a naming convention that includes the desired operating system, you should be able to define your class groups once and never touch them again.
99
+ **class_groups:** The `class_groups` section is much the same as the `node_groups` sections, except that it creates groups of classes, not groups of nodes (duh). All the same rules apply and you can also use the *include/exclude* syntax. This, like the classes section can also accept regular expressions. This means that as long as you name your roles according to a naming convention that includes the desired operating system, you should be able to define your class groups once and never touch them again. The names used for the actual `class_groups` and `node_groups` must be unique.
100
100
 
101
101
  **test_matrix:** This where the action happens! This is the section where we set up which classes are going to be tested against which nodes. It should be an array of hashes with the following format:
102
102
 
@@ -160,11 +160,15 @@ nodes:
160
160
  - centos7b
161
161
  - server2008r2a
162
162
  - ubuntu1404a
163
+ - ubuntu1604a
163
164
 
164
165
  node_groups:
165
166
  centos_severs:
166
167
  - centos6a
167
168
  - centos7b
169
+ ubuntu_servers:
170
+ - ubuntu1404a
171
+ - ubuntu1604a
168
172
  non_windows_servers:
169
173
  include: 'all_nodes'
170
174
  exclude: 'server2008r2a'
@@ -183,6 +187,8 @@ test_matrix:
183
187
  classes: 'all_classes'
184
188
  tests: 'spec'
185
189
  - non_windows_servers:
190
+ classes: 'non_windows_roles'
191
+ - ubuntu_servers:
186
192
  classes: 'all_classes'
187
193
  tests: 'all_tests'
188
194
  - centos_severs:
@@ -729,3 +735,4 @@ Cheers to all of those who helped out:
729
735
  - @LMacchi
730
736
  - @tabakhase
731
737
  - @binford2k
738
+ - @raphink
@@ -14,7 +14,7 @@ class Onceover
14
14
  end
15
15
 
16
16
  flag nil, :trace, 'Display stack traces on application crash'
17
- flag :d, :debug, 'Enable debug loging'
17
+ flag :d, :debug, 'Enable debug logging'
18
18
  optional :p, :path, 'Path to the root of the controlrepo'
19
19
  optional nil, :environmentpath, 'Value of environmentpath from puppet.conf'
20
20
  optional nil, :puppetfile, 'Location of the Puppetfile'
@@ -221,6 +221,9 @@ class Onceover
221
221
  if mod.is_a?(R10K::Module::Forge)
222
222
  return_hash[:current_version] = mod.expected_version
223
223
  return_hash[:latest_version] = mod.v3_module.current_release.version
224
+ return_hash[:endorsement] = mod.v3_module.endorsement
225
+ superseded_by = mod.v3_module.superseded_by
226
+ return_hash[:superseded_by] = superseded_by.nil? ? '' : superseded_by[:slug]
224
227
  current = Versionomy.parse(return_hash[:current_version])
225
228
  latest = Versionomy.parse(return_hash[:latest_version])
226
229
  if current.major < latest.major
@@ -236,6 +239,8 @@ class Onceover
236
239
  return_hash[:current_version] = "N/A"
237
240
  return_hash[:latest_version] = "N/A"
238
241
  return_hash[:out_of_date] = "N/A"
242
+ return_hash[:endorsement] = "N/A"
243
+ return_hash[:superseded_by] = "N/A"
239
244
  end
240
245
  output_array << return_hash
241
246
  end
@@ -247,7 +252,9 @@ class Onceover
247
252
  {:full_name => {:display_name => "Full Name"}},
248
253
  {:current_version => {:display_name => "Current Version"}},
249
254
  {:latest_version => {:display_name => "Latest Version"}},
250
- {:out_of_date => {:display_name => "Out of Date?"}}
255
+ {:out_of_date => {:display_name => "Out of Date?"}},
256
+ {:endorsement => {:display_name => "Endorsement"}},
257
+ {:superseded_by => {:display_name => "Superseded by"}}
251
258
  end
252
259
 
253
260
  def update_puppetfile
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "onceover"
7
- s.version = "3.7.0"
7
+ s.version = "3.8.0"
8
8
  s.authors = ["Dylan Ratcliffe"]
9
9
  s.email = ["dylan.ratcliffe@puppet.com"]
10
10
  s.homepage = "https://github.com/dylanratcliffe/onceover"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-15 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake