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

server_logtype should be optional #655

Closed
trenta opened this issue Feb 2, 2020 · 7 comments
Closed

server_logtype should be optional #655

trenta opened this issue Feb 2, 2020 · 7 comments

Comments

@trenta
Copy link

trenta commented Feb 2, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.12.0
  • Ruby:
  • Distribution: Ubuntu 18.04
  • Module version: 8.0.0

Currently server_logtype is set by the module with no user option available. I'd like to set it to file rather than system.

@baurmatt
Copy link
Contributor

baurmatt commented Mar 2, 2020

Hey @trenta,

thanks for opening this issue! :) I see that the parameter server_logtype can be configured at the zabbix::server class and you can set it to file.

https://github.com/voxpupuli/puppet-zabbix/blob/master/manifests/server.pp#L313

What exactly are you missing?

@trenta
Copy link
Author

trenta commented Mar 2, 2020

So that parameter is taken from this if statement https://github.com/voxpupuli/puppet-zabbix/blob/master/manifests/params.pp#L283

So if the systemd fact returns true then server_logtype is set to system and can't be set by the user.

@baurmatt
Copy link
Contributor

baurmatt commented Mar 2, 2020

That‘s agent_logtype your‘re linking to. Do you mean agent_logtype or server_logtype?

@trenta
Copy link
Author

trenta commented Mar 2, 2020

Sorry yes

$server_logtype = 'system'
.

All over the place this morning :)

@baurmatt
Copy link
Contributor

baurmatt commented Mar 2, 2020

No worries, just wanted to be sure! :)

server_logtype can be configured like this:

class { "zabbix::server":
  server_logtype => "file",
}

@trenta
Copy link
Author

trenta commented Mar 2, 2020

Thanks for your help. Can't believe I missed that. For the server I'd still be configuring things in the zabbix class.

@trenta trenta closed this as completed Mar 2, 2020
@trenta
Copy link
Author

trenta commented Mar 2, 2020

Yeah to just to confirm if you want to use the zabbix class for a single server setup you can't alter this value so I'd have to change to the following explicit setup so I can set that value?

zabbix::web
zabbix::server
zabbix::database

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

2 participants