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

Don't remove zabbix_agentd.conf if another one is set #683

Open
grodriguezl opened this issue Apr 22, 2020 · 0 comments
Open

Don't remove zabbix_agentd.conf if another one is set #683

grodriguezl opened this issue Apr 22, 2020 · 0 comments

Comments

@grodriguezl
Copy link

What are you seeing

Is it necessary to purge the default agent config file if I set another one?
I need to add a second agent service and this breaks the existing one.
There could be a parameter defaulted to true to avoid deleting this file.

if $agent_configfile_path != '/etc/zabbix/zabbix_agentd.conf' and $facts['kernel'] != 'windows' {
file { '/etc/zabbix/zabbix_agentd.conf':
ensure => absent,
require => Package[$zabbix_package_agent],
}
}

@grodriguezl grodriguezl changed the title Not removing zabbix_agentd.conf if another one is set Don't remove zabbix_agentd.conf if another one is set Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant