-
Notifications
You must be signed in to change notification settings - Fork 293
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
Quality of life improvements for zabbix server role #1230
Conversation
galaxy.yml
Outdated
@@ -24,4 +24,4 @@ dependencies: | |||
ansible.posix: "*" | |||
community.general: "*" | |||
community.mysql: "*" | |||
community.postgresql: "*" | |||
community.postgresql: ">=2.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this change? This would be a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, no. It's just as far back as I tested the collection. I went to galaxy to find the earliest version, 0.1.0. And that seems to work. Will undo this pinning.
Empty defaults just create problems with common ansible conventions, and is generally not a good practice.
Coming up in community.postgresql 4.0.0 using priv with the postgresql_user be removed, and we are encouraged already now to start using the postgresql_privs module. This should also take care of some outstanding issues with installing on postgres-15 (ansible-collections#928)
Much like the postgres user has carte blanche access to postgresql database, the root user has to mysql databases over the mysql.sock. We can use become when zabbix_server_dbhost_run_install: true in a similar fashion. Provide the default port for database servers. This could have been an if-statement, I just don't like the "looseness" of the else part. So I opted for a lookup-table.
There's no testing against python2 anymore, nor zabbix-5.0. So lets lighten the load by removing this baggage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for the add.
SUMMARY
Quality of life improvements for zabbix server role
ISSUE TYPE
COMPONENT NAME
zabbix_server role
ADDITIONAL INFORMATION
I created a Vagrantfile to just test the most basic, common way I can see this role deployed for mysql and pgsql variants, and these are the remaining fixes I needed to deploy the role.
The most common setup being OS with either postgresql or mysql/mariadb installed, and installing zabbix_server to it with the default localhost connection to the database.