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
4 changes: 1 addition & 3 deletions manifests/javagateway.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
$startpollers = $zabbix::params::javagateway_startpollers,
$timeout = $zabbix::params::javagateway_timeout,
) inherits zabbix::params {
$real_pidfile = $zabbix_version ? {
/^7\.0/ => pick($pidfile, '/var/run/zabbix/zabbix_java_gateway.pid'),
}
$real_pidfile = pick($pidfile, '/var/run/zabbix/zabbix_java_gateway.pid')
# Only include the repo class if it has not yet been included
unless defined(Class['Zabbix::Repo']) {
class { 'zabbix::repo':
Expand Down
1 change: 1 addition & 0 deletions spec/classes/javagateway_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
it { is_expected.to contain_service('zabbix-java-gateway').with_ensure('running') }
it { is_expected.to contain_service('zabbix-java-gateway').with_enable('true') }
it { is_expected.to contain_service('zabbix-java-gateway').with_require(['Package[zabbix-java-gateway]', 'File[/etc/zabbix/zabbix_java_gateway.conf]']) }
it { is_expected.to contain_file('/etc/zabbix/zabbix_java_gateway.conf').with_content %r{^PID_FILE=/var/run/zabbix/zabbix_java_gateway.pid$} }
end

context 'when declaring manage_repo is true' do
Expand Down
Loading