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

Quality of life improvements for zabbix server role #1230

Merged
merged 4 commits into from
May 18, 2024

Conversation

eb4x
Copy link
Collaborator

@eb4x eb4x commented May 16, 2024

SUMMARY

Quality of life improvements for zabbix server role

ISSUE TYPE
  • Bugfix Pull Request
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.

galaxy.yml Outdated
@@ -24,4 +24,4 @@ dependencies:
ansible.posix: "*"
community.general: "*"
community.mysql: "*"
community.postgresql: "*"
community.postgresql: ">=2.0.0"
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.
@eb4x eb4x force-pushed the qol_zabbix_server branch from ed9bf6c to 50fc724 Compare May 17, 2024 08:04
eb4x added 3 commits May 18, 2024 08:14
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.
@eb4x eb4x force-pushed the qol_zabbix_server branch from 50fc724 to 07869c2 Compare May 18, 2024 08:15
Copy link
Collaborator

@pyrodie18 pyrodie18 left a 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.

@pyrodie18 pyrodie18 merged commit ef06198 into ansible-collections:main May 18, 2024
46 checks passed
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

Successfully merging this pull request may close these issues.

2 participants