Class: PuppetMetadata::AIO
- Inherits:
-
Object
- Object
- PuppetMetadata::AIO
- Defined in:
- lib/puppet_metadata/aio.rb
Constant Summary collapse
- COMPATIBLE =
{ 'AlmaLinux' => 'RedHat', 'Amazon' => 'RedHat', 'CentOS' => 'RedHat', 'OracleLinux' => 'RedHat', 'Rocky' => 'RedHat', 'Scientific' => 'RedHat', }.freeze
- BUILDS =
{ # RPM-based 'RedHat' => { '7' => 7..8, '8' => 7..8, '9' => 7..8, }, 'Fedora' => { '36' => 7..8, '40' => 7..8, }, 'SLES' => { '11' => [7], '12' => 7..8, '15' => 7..8, }, # deb-based 'Debian' => { '11' => 7..8, '12' => 7..8, }, 'Ubuntu' => { '20.04' => 7..8, '22.04' => 7..8, '24.04' => 7..8, }, }.freeze
- PUPPET_RUBY_VERSIONS =
{ 7 => '2.7', 8 => '3.2', }.freeze
- OPENVOX_RUBY_VERSIONS =
PUPPET_RUBY_VERSIONS
Class Method Summary collapse
Class Method Details
.find_base_os(os) ⇒ Object
48 49 50 |
# File 'lib/puppet_metadata/aio.rb', line 48 def find_base_os(os) COMPATIBLE.fetch(os, os) end |
.has_aio_build?(os, release, puppet_version) ⇒ Boolean
52 53 54 |
# File 'lib/puppet_metadata/aio.rb', line 52 def has_aio_build?(os, release, puppet_version) BUILDS.dig(find_base_os(os), release)&.include?(puppet_version) end |