openvox 8.20.0 → 8.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91c67366f80e0f90b53567de5eea991ba6d36d5fa59af42d65a6975c619f119e
4
- data.tar.gz: 2c8b8e00d4f6d2d468888e6126ee9bcc5db0f18748164e1c7cf2545cdd27de51
3
+ metadata.gz: 04bd323be3adbae07a5a9046cc34cab16c323ed853e1ae2eaed00527208ec0a8
4
+ data.tar.gz: 32bdcaea98c09c1e4801b8e4ae790f2daab740a454ec1c32e91c2c5afc69bb23
5
5
  SHA512:
6
- metadata.gz: 315686060fd5c3fd1a3df8c7163c5cf737ddd16e2a922175b0dc2901e6bd4763fad7315cbccc06fff944485cfbab6f3d232160e04b72898cdec10076cfbe3474
7
- data.tar.gz: 1a5eecd081bc2d6ed326620a01b128056d2336002e0015b0627b0c7789a07be0f25ccc57e03db9f3ffbb35a7ee9e7b55f777bf42acdd03c511211ca11b27ac57
6
+ metadata.gz: 56aae8da2844a411834c22630ac3abd7c2e54cb9b6150a9b9c5f75431569a3b606af07359de93ce9cab423d8c4691fb12fb3b7b5af725b221f64deac9b79753f
7
+ data.tar.gz: ad2652c113f401b5f035546e6b0e0c732e2af7cae5ded4d70efc024e46f003da240e9fa7c7168c2961fcf4f05b7c9e33c247c9befb1db449feed175ce7907269
data/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [8.21.1](https://github.com/openvoxproject/openvox/tree/8.21.1) (2025-07-23)
6
+
7
+ [Full Changelog](https://github.com/openvoxproject/openvox/compare/8.21.0...8.21.1)
8
+
9
+ **Fixed bugs:**
10
+
11
+ - Make passing invalid options to install.rb fatal [\#156](https://github.com/OpenVoxProject/openvox/pull/156) ([ekohl](https://github.com/ekohl))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Revert "Mark some failing 8.3 Windows tests as pending" [\#159](https://github.com/OpenVoxProject/openvox/pull/159) ([ekohl](https://github.com/ekohl))
16
+ - \(maint\) Drop debian-10 from testing matrix [\#152](https://github.com/OpenVoxProject/openvox/pull/152) ([jpartlow](https://github.com/jpartlow))
17
+
18
+ ## [8.21.0](https://github.com/openvoxproject/openvox/tree/8.21.0) (2025-07-09)
19
+
20
+ [Full Changelog](https://github.com/openvoxproject/openvox/compare/8.20.0...8.21.0)
21
+
22
+ **Implemented enhancements:**
23
+
24
+ - Remove facter from install.rb [\#147](https://github.com/OpenVoxProject/openvox/pull/147) ([ekohl](https://github.com/ekohl))
25
+
5
26
  ## [8.20.0](https://github.com/openvoxproject/openvox/tree/8.20.0) (2025-06-27)
6
27
 
7
28
  [Full Changelog](https://github.com/openvoxproject/openvox/compare/8.19.2...8.20.0)
data/install.rb CHANGED
@@ -36,8 +36,7 @@ require 'tempfile'
36
36
  require 'optparse'
37
37
  require 'ostruct'
38
38
 
39
- PREREQS = %w{openssl facter cgi}
40
- MIN_FACTER_VERSION = 1.5
39
+ IS_WINDOWS = RUBY_PLATFORM.match?(/(mswin|mingw)/)
41
40
 
42
41
  InstallOptions = OpenStruct.new
43
42
 
@@ -82,13 +81,7 @@ def do_man(man, strip = 'man/')
82
81
  FileUtils.makedirs(om, mode: 0755, verbose: true)
83
82
  FileUtils.chmod(0755, om)
84
83
  FileUtils.install(mf, omf, mode: 0644, preserve: true, verbose: true)
85
- # Solaris does not support gzipped man pages. When called with
86
- # --no-check-prereqs/without facter the default gzip behavior still applies
87
- unless $osname == "Solaris"
88
- gzip = %x{which gzip}
89
- gzip.chomp!
90
- %x{#{gzip} --force --no-name #{omf}}
91
- end
84
+ %x{gzip --force --no-name #{omf}}
92
85
  end
93
86
  end
94
87
 
@@ -103,33 +96,11 @@ def do_locales(locale, strip = 'locales/')
103
96
  end
104
97
  end
105
98
 
106
- # Verify that all of the prereqs are installed
107
- def check_prereqs
108
- PREREQS.each { |pre|
109
- begin
110
- require pre
111
- if pre == "facter"
112
- # to_f isn't quite exact for strings like "1.5.1" but is good
113
- # enough for this purpose.
114
- facter_version = Facter.version.to_f
115
- if facter_version < MIN_FACTER_VERSION
116
- puts "Facter version: #{facter_version}; minimum required: #{MIN_FACTER_VERSION}; cannot install"
117
- exit(-1)
118
- end
119
- end
120
- rescue LoadError
121
- puts "Could not load #{pre}; cannot install"
122
- exit(-1)
123
- end
124
- }
125
- end
126
-
127
99
  ##
128
100
  # Prepare the file installation.
129
101
  #
130
102
  def prepare_installation
131
103
  InstallOptions.configs = true
132
- InstallOptions.check_prereqs = true
133
104
  InstallOptions.batch_files = true
134
105
 
135
106
  ARGV.options do |opts|
@@ -174,9 +145,6 @@ def prepare_installation
174
145
  opts.on('--mandir[=OPTIONAL]', 'Installation directory for man pages', 'overrides RbConfig::CONFIG["mandir"]') do |mandir|
175
146
  InstallOptions.mandir = mandir
176
147
  end
177
- opts.on('--[no-]check-prereqs', 'Prevents validation of prerequisite libraries', 'Default on') do |prereq|
178
- InstallOptions.check_prereqs = prereq
179
- end
180
148
  opts.on('--no-batch-files', 'Prevents installation of batch files for windows', 'Default off') do |batch_files|
181
149
  InstallOptions.batch_files = false
182
150
  end
@@ -191,6 +159,9 @@ def prepare_installation
191
159
  end
192
160
 
193
161
  opts.parse!
162
+ rescue OptionParser::InvalidOption => e
163
+ $stderr.puts e
164
+ exit 1
194
165
  end
195
166
 
196
167
  # Mac OS X 10.5 and higher declare bindir
@@ -201,16 +172,9 @@ def prepare_installation
201
172
  RbConfig::CONFIG['bindir'] = "/usr/bin"
202
173
  end
203
174
 
204
- # Here we only set $osname if we have opted to check for prereqs.
205
- # Otherwise facter won't be guaranteed to be present.
206
- if InstallOptions.check_prereqs
207
- check_prereqs
208
- $osname = Facter.value('os.name')
209
- end
210
-
211
175
  if not InstallOptions.configdir.nil?
212
176
  configdir = InstallOptions.configdir
213
- elsif $osname == "windows"
177
+ elsif IS_WINDOWS
214
178
  configdir = File.join(ENV['ALLUSERSPROFILE'], "PuppetLabs", "puppet", "etc")
215
179
  else
216
180
  configdir = "/etc/puppetlabs/puppet"
@@ -218,7 +182,7 @@ def prepare_installation
218
182
 
219
183
  if not InstallOptions.codedir.nil?
220
184
  codedir = InstallOptions.codedir
221
- elsif $osname == "windows"
185
+ elsif IS_WINDOWS
222
186
  codedir = File.join(ENV['ALLUSERSPROFILE'], "PuppetLabs", "code")
223
187
  else
224
188
  codedir = "/etc/puppetlabs/code"
@@ -226,7 +190,7 @@ def prepare_installation
226
190
 
227
191
  if not InstallOptions.vardir.nil?
228
192
  vardir = InstallOptions.vardir
229
- elsif $osname == "windows"
193
+ elsif IS_WINDOWS
230
194
  vardir = File.join(ENV['ALLUSERSPROFILE'], "PuppetLabs", "puppet", "cache")
231
195
  else
232
196
  vardir = "/opt/puppetlabs/puppet/cache"
@@ -234,7 +198,7 @@ def prepare_installation
234
198
 
235
199
  if not InstallOptions.publicdir.nil?
236
200
  publicdir = InstallOptions.publicdir
237
- elsif $osname == "windows"
201
+ elsif IS_WINDOWS
238
202
  publicdir = File.join(ENV['ALLUSERSPROFILE'], "PuppetLabs", "puppet", "public")
239
203
  else
240
204
  publicdir = "/opt/puppetlabs/puppet/public"
@@ -242,7 +206,7 @@ def prepare_installation
242
206
 
243
207
  if not InstallOptions.rundir.nil?
244
208
  rundir = InstallOptions.rundir
245
- elsif $osname == "windows"
209
+ elsif IS_WINDOWS
246
210
  rundir = File.join(ENV['ALLUSERSPROFILE'], "PuppetLabs", "puppet", "var", "run")
247
211
  else
248
212
  rundir = "/var/run/puppetlabs"
@@ -250,7 +214,7 @@ def prepare_installation
250
214
 
251
215
  if not InstallOptions.logdir.nil?
252
216
  logdir = InstallOptions.logdir
253
- elsif $osname == "windows"
217
+ elsif IS_WINDOWS
254
218
  logdir = File.join(ENV['ALLUSERSPROFILE'], "PuppetLabs", "puppet", "var", "log")
255
219
  else
256
220
  logdir = "/var/log/puppetlabs/puppet"
@@ -265,7 +229,7 @@ def prepare_installation
265
229
  if not InstallOptions.localedir.nil?
266
230
  localedir = InstallOptions.localedir
267
231
  else
268
- if $osname == "windows"
232
+ if IS_WINDOWS
269
233
  localedir = File.join(ENV['PROGRAMFILES'], "Puppet Labs", "Puppet", "puppet", "share", "locale")
270
234
  else
271
235
  localedir = "/opt/puppetlabs/puppet/share/locale"
@@ -339,7 +303,7 @@ end
339
303
  # by stripping the drive letter, but only if the basedir is not empty.
340
304
  #
341
305
  def join(basedir, dir)
342
- return "#{basedir}#{dir[2..-1]}" if $osname == "windows" and basedir.length > 0 and dir.length > 2
306
+ return "#{basedir}#{dir[2..-1]}" if IS_WINDOWS and basedir.length > 0 and dir.length > 2
343
307
 
344
308
  "#{basedir}#{dir}"
345
309
  end
@@ -360,14 +324,14 @@ def install_binfile(from, op_file, target)
360
324
 
361
325
  File.open(from) do |ip|
362
326
  File.open(tmp_file.path, "w") do |op|
363
- op.puts "#!#{ruby}" unless $osname == "windows"
327
+ op.puts "#!#{ruby}" unless IS_WINDOWS
364
328
  contents = ip.readlines
365
329
  contents.shift if contents[0] =~ /^#!/
366
330
  op.write contents.join
367
331
  end
368
332
  end
369
333
 
370
- if $osname == "windows" && InstallOptions.batch_files
334
+ if IS_WINDOWS && InstallOptions.batch_files
371
335
  installed_wrapper = false
372
336
 
373
337
  unless File.extname(from) =~ /\.(cmd|bat)/
@@ -415,14 +379,14 @@ FileUtils.cd File.dirname(__FILE__) do
415
379
 
416
380
  prepare_installation
417
381
 
418
- if $osname == "windows"
382
+ if IS_WINDOWS
419
383
  windows_bins = glob(%w{ext/windows/*bat})
420
384
  end
421
385
 
422
386
  do_configs(configs, InstallOptions.config_dir) if InstallOptions.configs
423
387
  do_bins(bins, InstallOptions.bin_dir)
424
- do_bins(windows_bins, InstallOptions.bin_dir, 'ext/windows/') if $osname == "windows" && InstallOptions.batch_files
388
+ do_bins(windows_bins, InstallOptions.bin_dir, 'ext/windows/') if IS_WINDOWS && InstallOptions.batch_files
425
389
  do_libs(libs)
426
390
  do_locales(locales)
427
- do_man(man) unless $osname == "windows"
391
+ do_man(man) unless IS_WINDOWS
428
392
  end
@@ -8,7 +8,7 @@
8
8
  # Raketasks and such to set the version based on the output of `git describe`
9
9
 
10
10
  module Puppet
11
- PUPPETVERSION = '8.20.0'
11
+ PUPPETVERSION = '8.21.1'
12
12
  IMPLEMENTATION = 'openvox'
13
13
 
14
14
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvox
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.20.0
4
+ version: 8.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenVox Project
@@ -233,7 +233,6 @@ extensions: []
233
233
  extra_rdoc_files: []
234
234
  files:
235
235
  - CHANGELOG.md
236
- - CODEOWNERS
237
236
  - CODE_OF_CONDUCT.md
238
237
  - Gemfile
239
238
  - Guardfile.example
@@ -1357,7 +1356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1357
1356
  - !ruby/object:Gem::Version
1358
1357
  version: 1.3.1
1359
1358
  requirements: []
1360
- rubygems_version: 3.6.7
1359
+ rubygems_version: 3.6.9
1361
1360
  specification_version: 4
1362
1361
  summary: OpenVox, a community implementation of Puppet -- an automated configuration
1363
1362
  management tool
data/CODEOWNERS DELETED
@@ -1,11 +0,0 @@
1
- # defaults
2
- * @puppetlabs/phoenix
3
-
4
- # PAL
5
- /lib/puppet/pal @puppetlabs/bolt
6
-
7
- # puppet module
8
- /lib/puppet/application/module.rb @puppetlabs/modules
9
- /lib/puppet/face/module @puppetlabs/modules
10
- /lib/puppet/forge @puppetlabs/modules
11
- /lib/puppet/module_tool @puppetlabs/modules