Skip to content
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
15 changes: 10 additions & 5 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"operatingsystem": "AlmaLinux",
"operatingsystemrelease": [
"8",
"9"
"9",
"10"
]
},
{
Expand All @@ -75,7 +76,8 @@
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"9"
"9",
"10"
]
},
{
Expand All @@ -97,21 +99,24 @@
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"8",
"9"
"9",
"10"
]
},
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"8",
"9"
"9",
"10"
]
},
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
"8",
"9"
"9",
"10"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion spec/acceptance/hieradata/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ apache::mpm_module: 'prefork'
postgresql::globals::encoding: 'UTF-8'
postgresql::globals::locale: 'en_US.UTF-8'
postgresql::globals::manage_package_repo: true
postgresql::globals::version: '13'
# workaround for https://github.com/puppetlabs/puppetlabs-postgresql/issues/1572
postgresql::server::service_status: systemctl status postgresql > /dev/null
1 change: 1 addition & 0 deletions spec/acceptance/hieradata/family/RedHat/8.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
postgresql::globals::manage_dnf_module: true
postgresql::globals::manage_package_repo: false
postgresql::globals::version: '16'
7 changes: 6 additions & 1 deletion spec/classes/agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
# service = facts[:os]['family'] == 'Gentoo' ? 'zabbix-agentd' : 'zabbix-agent'

context 'with all defaults' do
it { is_expected.to contain_selinux__module('zabbix-agent') } if facts[:os]['family'] == 'RedHat'
it { is_expected.to contain_file(include_dir).with_ensure('directory') }

# Make sure package will be installed, service running and ensure of directory.
Expand Down Expand Up @@ -108,6 +107,12 @@
end
end

describe 'with enabled selinux', if: facts[:os]['family'] == 'RedHat' do
let(:facts) { facts.deep_merge(os: { selinux: { enabled: true } }) }

it { is_expected.to contain_selinux__module('zabbix-agent') }
end

context 'when declaring manage_repo is true' do
let :params do
{
Expand Down Expand Up @@ -490,7 +495,7 @@
super().merge(systemd: true)
end

it { is_expected.to contain_systemd__unit_file('zabbix-agent.service') }

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on oraclelinux-9-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on oraclelinux-8-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on gentoo-2-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on debian-12-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on centos-10-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on centos-9-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on archlinux-6-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on almalinux-10-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on almalinux-9-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 9 (Ruby 4.0)

zabbix::agent on almalinux-8-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on oraclelinux-9-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on oraclelinux-8-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on gentoo-2-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on debian-12-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on centos-10-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on centos-9-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on archlinux-6-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on almalinux-10-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on almalinux-9-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file

Check warning on line 498 in spec/classes/agent_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 (Ruby 3.2)

zabbix::agent on almalinux-8-x86_64 with systemd active Skipped: user package provided instead systemd::unit_file
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

describe 'with enabled selinux', if: facts[:os]['family'] == 'RedHat' do
let :facts do
super().merge(selinux: true)
facts.deep_merge(os: { selinux: { enabled: true } })
end

it { is_expected.to contain_selboolean('zabbix_can_network').with('value' => 'on', 'persistent' => true) }
Expand Down