Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EL9 support #185

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,22 @@
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
"operatingsystem": "AlmaLinux",
"operatingsystemrelease": [
"8"
"8",
"9"
]
},
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
"8"
"8",
"9"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

describe 'squid class' do
context 'configure http_access with default service type' do
it 'works idempotently with no errors' do

Check warning on line 7 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 8

squid class configure http_access with default service type works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_195102312.pp.JbKLsN Last 10 lines of output were: Jul 18 19:53:21 centos8-64-puppet8.example.com squid[941]: Squid Parent: squid-1 process 943 exited with status 0 Jul 18 19:53:21 centos8-64-puppet8.example.com systemd[1]: squid.service: Failed with result 'timeout'. Jul 18 19:53:21 centos8-64-puppet8.example.com systemd[1]: Failed to start Squid caching proxy. �[mNotice: /Stage[main]/Squid::Service/Service[squid]: Triggered 'refresh' from 1 event Info: Class[Squid::Service]: Unscheduling all events on Class[Squid::Service] Info: Class[Squid]: Unscheduling all events on Class[Squid] Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 134.50 seconds

Check warning on line 7 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 8

squid class configure http_access with default service type works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_195128998.pp.1T36bv Last 10 lines of output were: Jul 18 19:53:51 centos8-64-puppet7.example.com squid[954]: Squid Parent: squid-1 process 956 exited with status 0 Jul 18 19:53:51 centos8-64-puppet7.example.com systemd[1]: squid.service: Failed with result 'timeout'. Jul 18 19:53:51 centos8-64-puppet7.example.com systemd[1]: Failed to start Squid caching proxy. �[mNotice: /Stage[main]/Squid::Service/Service[squid]: Triggered 'refresh' from 1 event Info: Class[Squid::Service]: Unscheduling all events on Class[Squid::Service] Info: Class[Squid]: Unscheduling all events on Class[Squid] Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 139.52 seconds

Check warning on line 7 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 8

squid class configure http_access with default service type works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_195034071.pp.nIHfhh Last 10 lines of output were: Jul 18 19:52:47 almalinux8-64-puppet8.example.com squid[855]: Squid Parent: squid-1 process 857 exited with status 0 Jul 18 19:52:47 almalinux8-64-puppet8.example.com systemd[1]: squid.service: Failed with result 'timeout'. Jul 18 19:52:47 almalinux8-64-puppet8.example.com systemd[1]: Failed to start Squid caching proxy. �[mNotice: /Stage[main]/Squid::Service/Service[squid]: Triggered 'refresh' from 1 event Info: Class[Squid::Service]: Unscheduling all events on Class[Squid::Service] Info: Class[Squid]: Unscheduling all events on Class[Squid] Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 128.65 seconds

Check warning on line 7 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

squid class configure http_access with default service type works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_195046104.pp.TZsMzg Last 10 lines of output were: Jul 18 19:52:57 almalinux8-64-puppet7.example.com squid[867]: Squid Parent: squid-1 process 869 exited with status 0 Jul 18 19:52:57 almalinux8-64-puppet7.example.com systemd[1]: squid.service: Failed with result 'timeout'. Jul 18 19:52:57 almalinux8-64-puppet7.example.com systemd[1]: Failed to start Squid caching proxy. �[mNotice: /Stage[main]/Squid::Service/Service[squid]: Triggered 'refresh' from 1 event Info: Class[Squid::Service]: Unscheduling all events on Class[Squid::Service] Info: Class[Squid]: Unscheduling all events on Class[Squid] Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 128.62 seconds

Check warning on line 7 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 8

squid class configure http_access with default service type works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky8-64-puppet8.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_195036241.pp.RmCACj Last 10 lines of output were: Jul 18 19:52:49 rocky8-64-puppet8.example.com squid[789]: Squid Parent: squid-1 process 791 exited with status 0 Jul 18 19:52:49 rocky8-64-puppet8.example.com systemd[1]: squid.service: Failed with result 'timeout'. Jul 18 19:52:49 rocky8-64-puppet8.example.com systemd[1]: Failed to start Squid caching proxy. �[mNotice: /Stage[main]/Squid::Service/Service[squid]: Triggered 'refresh' from 1 event Info: Class[Squid::Service]: Unscheduling all events on Class[Squid::Service] Info: Class[Squid]: Unscheduling all events on Class[Squid] Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 129.11 seconds

Check warning on line 7 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 8

squid class configure http_access with default service type works idempotently with no errors Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_195046552.pp.6za8pL Last 10 lines of output were: Jul 18 19:53:00 rocky8-64-puppet7.example.com squid[800]: Squid Parent: squid-1 process 802 exited with status 0 Jul 18 19:53:00 rocky8-64-puppet7.example.com systemd[1]: squid.service: Failed with result 'timeout'. Jul 18 19:53:00 rocky8-64-puppet7.example.com systemd[1]: Failed to start Squid caching proxy. �[mNotice: /Stage[main]/Squid::Service/Service[squid]: Triggered 'refresh' from 1 event Info: Class[Squid::Service]: Unscheduling all events on Class[Squid::Service] Info: Class[Squid]: Unscheduling all events on Class[Squid] Info: Stage[main]: Unscheduling all events on Stage[main] Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 131.89 seconds
pending('the default Type=notify in squid.service working again on CentOS 8') if fact('os.family') == 'RedHat' && fact('os.release.major') != '7'
pending('the default Type=notify in squid.service fail on CentOS 8') if fact('os.family') == 'RedHat' && fact('os.release.major') == '8'
pp = <<-EOS
# The default Type=notify is problematic in github CI.
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] != '7' {
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '8' {
systemd::dropin_file{'simple.conf':
ensure => absent,
unit => 'squid.service',
Expand Down