Skip to content

Commit

Permalink
Declare Debian 12 Support
Browse files Browse the repository at this point in the history
Currently bolt is unreleased for Debian 12.
  • Loading branch information
traylenator committed Apr 28, 2024
1 parent 584e231 commit d148af3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"11"
"11",
"12"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/redis_cli_task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

let(:task_name) { 'redis::redis_cli' }

unless fact('os.family') == 'RedHat' && fact('os.release.major').to_i >= 9
unless (fact('os.family') == 'RedHat' && fact('os.release.major').to_i >= 9) ||
(fact('os.name') == 'Debian' && fact('os.release.major').to_i >= 12)
include_examples 'an idempotent resource' do
let(:manifest) { 'include redis' }
end
Expand Down
10 changes: 6 additions & 4 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
# sysctl is untestable in docker
install_puppet_module_via_pmt_on(host, 'puppet-augeasproviders_sysctl') unless host['hypervisor'] == 'docker'

unless fact_on(host, 'os.family') == 'RedHat' && fact_on(host, 'os.release.major').to_i >= 9
# puppet-bolt rpm for CentOS 9 is not yet available
# https://tickets.puppetlabs.com/browse/MODULES-11275
host.install_package('puppet-bolt')
unless (fact_on(host, 'os.family') == 'RedHat' && fact_on(host, 'os.release.major').to_i >= 9) ||
(fact_on(host, 'os.name') == 'Debian' && fact_on(host, 'os.release.major').to_i >= 12) ||
# puppet-bolt rpm for CentOS 9 or Debian 12 is not yet available
# https://tickets.puppetlabs.com/browse/MODULES-11275
# https://github.com/puppetlabs/bolt-vanagon/pull/202
host.install_package('puppet-bolt')
end

if fact_on(host, 'os.family') == 'Debian'
Expand Down

0 comments on commit d148af3

Please sign in to comment.