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

2.0.0 #979

Merged
merged 24 commits into from
May 3, 2023
Merged

2.0.0 #979

merged 24 commits into from
May 3, 2023

Conversation

BGmot
Copy link
Collaborator

@BGmot BGmot commented May 3, 2023

SUMMARY

2.0.0 release

ADDITIONAL INFORMATION

To be merged on May 4, 2023

pyrodie18 and others added 24 commits April 16, 2023 16:03
* Initial Update to Server Role

* Update python version to 3.9

* Trying to get molecule to work

* Fixed python shell command problems

* Defined zabbix_os_user

* Fixed Rocky9 Idempotence Test

* Fixed Interpreter Values

* Think I fixed the username check.  Not sure why we changed the username in the first place

* Fixed Failed Test for file owner/group

* Fixed problems with Centos 9 Zabbix6.0

* Fixed Tests

* Fixed the config file problem that kept most instances from running
* Server update (#1) (#2)

* Initial Update to Server Role

* Update python version to 3.9

* Trying to get molecule to work

* Fixed python shell command problems

* Defined zabbix_os_user

* Fixed Rocky9 Idempotence Test

* Fixed Interpreter Values

* Think I fixed the username check.  Not sure why we changed the username in the first place

* Fixed Failed Test for file owner/group

* Fixed problems with Centos 9 Zabbix6.0

* Fixed Tests

* Fixed the config file problem that kept most instances from running

* Proxy update (#3)

* Standardizing database file path
* Fixed SQL file location
* Fixed Proxy Prepare file to handle mariadb install on RHEL9
* Added supported versions of proxy that were left out for some reason
* Fixed testing
* Consolidated SElinux items
* Fixed SQLite

* Java gw (#4)

Refactor Java Gateway

* Web (#6)

* Removed unnecessary files

* Fixed Valid Versions

* Fixed Server Name issue

* Fixing Molecule

* Cleaned up Documentation

* Fixed Prepare for Centos8

* Lots of changes for Debian

* Fixed Idempotency Issue

* Added curl to prepare

* Fixed Prepare for Centos 8+ and Ubuntu 2204

* Fixed Error with V6 Rocky 9

* Hopefully fixed all of the PgSQL stuff

* Think I fixed my pgsql problem

* Nginx Work

* Fixed Accidental Install from Epel

* Fixed Error With Centos 7

* Enabled all Server Tests

* Remove Support for 5.X from Web

* More 5.0 Removal Cleanup

* Think I fixed my RHEL Problem

* Bgmot usergroup update (#893)

* zabbix_usergroup module: added hostgroup_rights and templategroup_rights (Zabbix >= 6.2).

* zabbix_usergroup module: added userdirectory parameter (Zabbix >= 6.2).

* Changelog fragment added.

* zabbix_usergroup: fix compatibility with Zabbix < 6.2.

* zabbix_agent - Fix MacOS/Darwin install (#897)

* zabbix_agent role - Add support for SUSE Linux Enterprise Server for SAP Applications ("SLES_SAP"). (#899)

* Add support for SLES_SAP

* Renamed to pr number

---------

Co-authored-by: Bram Mol <bram.mol@cfit.nl>

* Bgmot fix python interpreter (#900)

* zabbix_agent role: fix python_interpreter error.

* zabbix_proxy role: fix python_interpreter error.

* Code clean up.

* Remove code used to debugging.

* 1.9.2prep (#902)

* Remove warn: for module shell for Ansible 2.14. (#877)

* Bgmot python version (#890)

* Bump Python version to 3.9 to satisfy ansible 7.0.

* Bump ansible from 4.6.0 to 7.0.0 in /molecule.

* Bump ansible-core from 2.11.5 to 2.14.2 in /molecule.

* In new Ansible version need to specify Python interpreter explicitely for some (like Rocky linux) distros of Linux.

* Remove warn: for module command for Ansible 2.14 in molecule tests.

* Ansible does not set correct Python interpreter only for rockylinux.

* Deal with Python versions mess on different OS/versions.

* zabbix_agent - Fix MacOS/Darwin install (#897)

* Bgmot fix python interpreter (#900)

* zabbix_agent role: fix python_interpreter error.

* zabbix_proxy role: fix python_interpreter error.

* Code clean up.

* Remove code used to debugging.

* Missing changelog fragments added.

* CHANGELOG updated by antsibull-changelog.

* galaxy.yml updated with 1.9.2 version.

* README.md updated.

---------

Co-authored-by: Benjamin Pinchon <dev@mdfr.me>

* zabbix_user: several mailto: for email media type (#907)

* zabbix_user: fix ability to specify several e-mail addresses in media.

* Changelog fragment added.

* Switch to ansible core version of LooseVersion.

* Fix postgres tags (#910)

Use tags apropriate for role

* Bgmot fix netcommon (#915)

* Fix to work with ansible.netcommon 5.0.

* Remove unused variable.

* Changelog fragment added.

* Bgmot user mailto1 (#916)

* zabbix_user: fix ability to specify several e-mail addresses in media (attempt #2).

* Changelog fragment added.

* Zabbix 6.4 from BGmot (#927)

* The stupidiest fix for user vs username parameter during authentication.

* Modules integration tests: first get API version then do login accordingly.

* Do not use zabbix-api in zabbix_action module integration tests as zabbix-api is broken for Zabbix 6.4.

* Fix sanity test.

* zabbix_user_directory module updated to work with Zabbix 6.4.

* zabbix_user_directory: update examples for Zabbix 6.4.

* zabbix_authentication module updated to work with Zabbix 6.4.

* zabbix_authentication: re-do tests introducing clean up and adding tests for Zabbix 6.4.

* zabbix_discovery_rule module updated to work with Zabbix 6.4.

* zabbix_mediatype module updated to work with Zabbix 6.4.

* zabbix_user module updated to work with Zabbix 6.4.

* Make tests for zabbix_host compatible with Zabbix 6.4.

* Make tests for zabbix_template compatible with Zabbix 6.4.

* Make tests for zabbix_template_info compatible with Zabbix 6.4.

* zabbix_user_group module updated to work with Zabbix 6.4.

* Fix linter errors.

* zabbix_action module updated with new parameter in Zabbix 6.4.

* Add 6.4 to plugins-integration test suite.

* Changelog fragment added.

* zabbix_authentication: fix backward compatibility with Zabbix 6.2.

* zabbix_mediatype: fix backward compatibility with Zabbix 6.2.

* Update examples with task level vars (instead of PR #920) (#929)

* Update examples with task level vars

* Cleanup 5.0 Removal

* Remove epel (#8)

* Updated Java Gateway

* Updated Server

* Updated Proxy

* Updated Web

* Removed Epel and Other related tasks

* Fixed EPEL leftover in Proxy

* Server update (#1)

* Initial Update to Server Role

* Update python version to 3.9

* Trying to get molecule to work

* Fixed python shell command problems

* Defined zabbix_os_user

* Fixed Rocky9 Idempotence Test

* Fixed Interpreter Values

* Think I fixed the username check.  Not sure why we changed the username in the first place

* Fixed Failed Test for file owner/group

* Fixed problems with Centos 9 Zabbix6.0

* Fixed Tests

* Fixed the config file problem that kept most instances from running

* Proxy update (#3)

* Standardizing database file path
* Fixed SQL file location
* Fixed Proxy Prepare file to handle mariadb install on RHEL9
* Added supported versions of proxy that were left out for some reason
* Fixed testing
* Consolidated SElinux items
* Fixed SQLite

* Web (#6)

* Removed unnecessary files

* Fixed Valid Versions

* Fixed Server Name issue

* Fixing Molecule

* Cleaned up Documentation

* Fixed Prepare for Centos8

* Lots of changes for Debian

* Fixed Idempotency Issue

* Added curl to prepare

* Fixed Prepare for Centos 8+ and Ubuntu 2204

* Fixed Error with V6 Rocky 9

* Hopefully fixed all of the PgSQL stuff

* Think I fixed my pgsql problem

* Nginx Work

* Fixed Accidental Install from Epel

* Fixed Error With Centos 7

* Enabled all Server Tests

* Remove Support for 5.X from Web

* More 5.0 Removal Cleanup

* Think I fixed my RHEL Problem

* Bgmot usergroup update (#893)

* zabbix_usergroup module: added hostgroup_rights and templategroup_rights (Zabbix >= 6.2).

* zabbix_usergroup module: added userdirectory parameter (Zabbix >= 6.2).

* Changelog fragment added.

* zabbix_usergroup: fix compatibility with Zabbix < 6.2.

* zabbix_user: several mailto: for email media type (#907)

* zabbix_user: fix ability to specify several e-mail addresses in media.

* Changelog fragment added.

* Switch to ansible core version of LooseVersion.

* Bgmot user mailto1 (#916)

* zabbix_user: fix ability to specify several e-mail addresses in media (attempt #2).

* Changelog fragment added.

* Zabbix 6.4 from BGmot (#927)

* The stupidiest fix for user vs username parameter during authentication.

* Modules integration tests: first get API version then do login accordingly.

* Do not use zabbix-api in zabbix_action module integration tests as zabbix-api is broken for Zabbix 6.4.

* Fix sanity test.

* zabbix_user_directory module updated to work with Zabbix 6.4.

* zabbix_user_directory: update examples for Zabbix 6.4.

* zabbix_authentication module updated to work with Zabbix 6.4.

* zabbix_authentication: re-do tests introducing clean up and adding tests for Zabbix 6.4.

* zabbix_discovery_rule module updated to work with Zabbix 6.4.

* zabbix_mediatype module updated to work with Zabbix 6.4.

* zabbix_user module updated to work with Zabbix 6.4.

* Make tests for zabbix_host compatible with Zabbix 6.4.

* Make tests for zabbix_template compatible with Zabbix 6.4.

* Make tests for zabbix_template_info compatible with Zabbix 6.4.

* zabbix_user_group module updated to work with Zabbix 6.4.

* Fix linter errors.

* zabbix_action module updated with new parameter in Zabbix 6.4.

* Add 6.4 to plugins-integration test suite.

* Changelog fragment added.

* zabbix_authentication: fix backward compatibility with Zabbix 6.2.

* zabbix_mediatype: fix backward compatibility with Zabbix 6.2.

* Update examples with task level vars (instead of PR #920) (#929)

* Update examples with task level vars

* Convert bool values to lowercase in modules documentation.x (#933)

* user to username Zabbix 6.4 (#917)

* The stupidiest fix for user vs username parameter during authentication.

* Modules integration tests: first get API version then do login accordingly.

* Do not use zabbix-api in zabbix_action module integration tests as zabbix-api is broken for Zabbix 6.4.

* Fix sanity test.

* Possibility to add custom includes in apache vhost config (zabbix_web) (#935)

* add custom includes for apache configuration

* remove length check

* change if statement in template

---------

Co-authored-by: JHauf <johannes.hauf@datev.cloud>

* Roles to Zabbix 6.4 (#937)

* Zabbix proxy configuration template updated for Zabbix 6.4.

* Zabbix server configuration template updated for Zabbix 6.4.

* zabbix_server role: adjusting defaults.

* zabbix_server role: fix zabbix_server_proxyconfigfrequency variable.

* Add 6.4 version to all roles and make it essentially default.

* zabbix_server role: restore accidentally deleted parameter.

* READMEs for role updated with Zabbix 6.4.

* Changelog fragment added.

* Fix molecule test for zabbix_web.

* 1.9.3prep (#938)

* Add missing changelog fragments.

* Fix changelog format.

* CHANGELOG.rst generated.

* galaxy.yml updated.

* README.md updated.

* Switch GitHub runner image to ubuntu-latest.

* Switch to Ubuntu 22.04 for web test.

* Switch to Ubuntu 20.04 for web test.

* Switch to Ubuntu 20.04 for all molecule tests.

* Fix sanity tests for Ansible dev.

* Do not ignore any failing sanity tests.

* zabbix_host: fix integration test to properly handle removing all linked templates.

* zabbix_action: re-name message paremeter into op_message.

* Changelog fragment added.

* Proxy update (#3)

* Standardizing database file path
* Fixed SQL file location
* Fixed Proxy Prepare file to handle mariadb install on RHEL9
* Added supported versions of proxy that were left out for some reason
* Fixed testing
* Consolidated SElinux items
* Fixed SQLite

* Bgmot fix python interpreter (#900)

* zabbix_agent role: fix python_interpreter error.

* zabbix_proxy role: fix python_interpreter error.

* Code clean up.

* Remove code used to debugging.

* Cleanup 5.0 Removal

* Remove epel (#8)

* Updated Java Gateway

* Updated Server

* Updated Proxy

* Updated Web

* Removed Epel and Other related tasks

* Fixed EPEL leftover in Proxy

* Server update (#1)

* Initial Update to Server Role

* Update python version to 3.9

* Trying to get molecule to work

* Fixed python shell command problems

* Defined zabbix_os_user

* Fixed Rocky9 Idempotence Test

* Fixed Interpreter Values

* Think I fixed the username check.  Not sure why we changed the username in the first place

* Fixed Failed Test for file owner/group

* Fixed problems with Centos 9 Zabbix6.0

* Fixed Tests

* Fixed the config file problem that kept most instances from running

* Proxy update (#3)

* Standardizing database file path
* Fixed SQL file location
* Fixed Proxy Prepare file to handle mariadb install on RHEL9
* Added supported versions of proxy that were left out for some reason
* Fixed testing
* Consolidated SElinux items
* Fixed SQLite

* Web (#6)

* Removed unnecessary files

* Fixed Valid Versions

* Fixed Server Name issue

* Fixing Molecule

* Cleaned up Documentation

* Fixed Prepare for Centos8

* Lots of changes for Debian

* Fixed Idempotency Issue

* Added curl to prepare

* Fixed Prepare for Centos 8+ and Ubuntu 2204

* Fixed Error with V6 Rocky 9

* Hopefully fixed all of the PgSQL stuff

* Think I fixed my pgsql problem

* Nginx Work

* Fixed Accidental Install from Epel

* Fixed Error With Centos 7

* Enabled all Server Tests

* Remove Support for 5.X from Web

* More 5.0 Removal Cleanup

* Think I fixed my RHEL Problem

---------

Co-authored-by: Evgeny <ey@bgmot.com>
Co-authored-by: Benjamin Pinchon <dev@mdfr.me>
Co-authored-by: brnl <3243133+brnl@users.noreply.github.com>
Co-authored-by: Bram Mol <bram.mol@cfit.nl>
Co-authored-by: Robert Szulist <szuro@users.noreply.github.com>
Co-authored-by: anmg <a.gangan@gmail.com>
Co-authored-by: johansenha <35975241+johansenha@users.noreply.github.com>
Co-authored-by: JHauf <johannes.hauf@datev.cloud>
* Added 6.4 to the testing matrix
* Fixed some proxy issues from the rebase

* fixed missing DB path

* Removed breaking change from epel
* Updated Testing Matrix on Web and javagw

* Fixed undefined variable in web
* Get rid of vars and tasks files for unsported versions

* removed fedora and debian 9 from testing pipeline

* removed version check test (see #947)

* Updated Testing Matrix
- Updated documentation for all roles
- Standardized naming conventions of variables
- Removed unused variables
* zabbix-api removed.

* zabbix_inventory: do not use zabbix-api, ability to authenticate with auth token.

* Clean up modules tests.

* Remove unsupported versions of Zabbix from modules test matrix.

* Fix sanity test errors.

* Changelog fragment added.
* Standardized tags on all roles

* Updated Documentation
* Updated Default Versions to 6.4
* replaced deprecated apt_key

---------

Co-authored-by: Hernan Garcia <hernan.garcia@percona.com>
* zabbix_action module cleaned up of old Zabbix versions.

* zabbix_authentication module cleaned up of old Zabbix versions.

* zabbix_autoregister module cleaned up of old Zabbix versions.

* zabbix_discovery_rule module cleaned up of old Zabbix versions.

* zabbix_globalmacro module cleaned up of old Zabbix versions.

* zabbix_group_info module: update python version requirement. Remove zabbix_group_facts module (deprecated in favour of zabbix_group_info).

* zabbix_group_info module: code clean up.

* zabbix_host_events_info module: code clean up.

* zabbix_host_info module cleaned up of old Zabbix versions. zabbix_host_facts deprecated in favour of zabbix_host_info.

* zabbix_hostmacro module cleaned up of old Zabbix versions.

* zabbix_host module cleaned up of old Zabbix versions.

* zabbix_housekeeping module cleaned up of old Zabbix versions.

* zabbix_housekeeping module tests cleaned up of old Zabbix versions.

* zabbix_maintenance module cleaned up of old Zabbix versions.

* zabbix_maintenance module: use only double quotes.

* zabbix_map module cleaned up of old Zabbix versions.

* zabbix_mediatype module cleaned up of old Zabbix versions.

* zabbix_proxy_info module: use only double quotes.

* zabbix_proxy module cleaned up of old Zabbix versions.

* zabbix_screen module removed.

* zabbix_script module cleaned up of old Zabbix versions.

* zabbix_service module cleaned up of old Zabbix versions.

* zabbix_template_info module cleaned up of old Zabbix versions.

* zabbix_template module cleaned up of old Zabbix versions.

* zabbix_user_directory module: switch to double quotes everywhere.

* zabbix_usergroup module cleaned up of old Zabbix versions and switched to double quotes in code.

* zabbix_user_info module cleaned up of old Zabbix versions.

* zabbix_user module cleaned up of old Zabbix versions.

* zabbix_user_role module: switch to double quotes everywhere.

* zabbix_valuemap module: switch to double quotes everywhere.

* Fix sanity checks.

* Fix zabbix_host module tests.

* Fix zabbix_template_info module tests.

* Move changelog fragment into right place.

* Changelog fragment added.

* Rename changelog fragment file to reflect PR number.

* Correct minimum dependency for ansible.netcommon (#952)

Connection plugin options are broken in versions before 3.1.1.

---------

Co-authored-by: flowerysong <junk+github@flowerysong.com>
* zabbix_agent role cleaned up.

* zabbix_agent role: more clean up and README updated.

* zabbix_proxy role cleaned up.

* Remove unneeded any longer require_creds_params function from all modules.

* zabbix_agent role: update documentation.

* More code clean up.

* zabbix.py inventory script re-coded not to use zabbix-api.

* scripts/inventory/zabbix.py: fix saity test error.
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #979 (70351ff) into main (56f94d1) will increase coverage by 1.66%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #979      +/-   ##
==========================================
+ Coverage   77.63%   79.30%   +1.66%     
==========================================
  Files          30       28       -2     
  Lines        4279     3590     -689     
  Branches     1149      914     -235     
==========================================
- Hits         3322     2847     -475     
+ Misses        594      456     -138     
+ Partials      363      287      -76     

see 28 files with indirect coverage changes

@dj-wasabi
Copy link
Contributor

Looks good! Nice work everyone! 🥳

@pyrodie18 pyrodie18 merged commit c6df01d into main May 3, 2023
@pyrodie18 pyrodie18 deleted the 2.0.0-dev2 branch May 9, 2023 04:13
miikkajo pushed a commit to miikkajo/community.zabbix that referenced this pull request May 3, 2024
…ariable names.

Selinux tasks were not included by zabbix_web role,
seems that include had been dropped by accident (?) on pull request ansible-collections#979 (v2.0.0)

Restored `include_tasks: selinux.yml` to roles/zabbix_web/tasks/RedHat.yml

Refactor `zabbix_selinux` variable to `zabbix_web_selinux` as variable names should be prefixed with role name,
also to use similar pattern with `zabbix_proxy_selinux` and `zabbix_server_selinux` variables.

Refactor `selinux_allow_*` variable names to correlate with selinux boolean names.

Refactor `zabbix_apache_can_connect_ldap` to `selinux_allow_httpd_can_connect_ldap` as it's not apache specific
and not correlating with actual seboolean name.
pyrodie18 pushed a commit that referenced this pull request May 9, 2024
…mes (#1220)

* Include missing SELinux tasks from selinux.yml and refactor selinux variable names.

Selinux tasks were not included by zabbix_web role,
seems that include had been dropped by accident (?) on pull request #979 (v2.0.0)

Restored `include_tasks: selinux.yml` to roles/zabbix_web/tasks/RedHat.yml

Refactor `zabbix_selinux` variable to `zabbix_web_selinux` as variable names should be prefixed with role name,
also to use similar pattern with `zabbix_proxy_selinux` and `zabbix_server_selinux` variables.

Refactor `selinux_allow_*` variable names to correlate with selinux boolean names.

Refactor `zabbix_apache_can_connect_ldap` to `selinux_allow_httpd_can_connect_ldap` as it's not apache specific
and not correlating with actual seboolean name.

---------

Co-authored-by: Miikka Joutsenvirta <miikka@joutsenvirta.fi>
pyrodie18 pushed a commit to pyrodie18/community.zabbix that referenced this pull request May 14, 2024
…mes (ansible-collections#1220)

* Include missing SELinux tasks from selinux.yml and refactor selinux variable names.

Selinux tasks were not included by zabbix_web role,
seems that include had been dropped by accident (?) on pull request ansible-collections#979 (v2.0.0)

Restored `include_tasks: selinux.yml` to roles/zabbix_web/tasks/RedHat.yml

Refactor `zabbix_selinux` variable to `zabbix_web_selinux` as variable names should be prefixed with role name,
also to use similar pattern with `zabbix_proxy_selinux` and `zabbix_server_selinux` variables.

Refactor `selinux_allow_*` variable names to correlate with selinux boolean names.

Refactor `zabbix_apache_can_connect_ldap` to `selinux_allow_httpd_can_connect_ldap` as it's not apache specific
and not correlating with actual seboolean name.

---------

Co-authored-by: Miikka Joutsenvirta <miikka@joutsenvirta.fi>
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.

5 participants