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

feat: zabbix 6.4 repo for EL7 (and some more 3.0 removal) #144

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ GitOps our Foreman. This is where most of our Foreman configuration lives.
* disable the new repo in all relevant activation keys or create a new key in `roles/content/tasks/activation_keys.yaml`
* your content views need to be published to Prod for this step! this isn't currently automated

### Removing old Products

Products are removed once they are not in active use by any content view. Hence deprovisioning a component needs to be done in stages:

* remove the product from `roles/content/tasks/content_views.yaml` and from the publish and promote playbooks in `playbooks/`
* at this stage, there are probably still active users of the old content view so we wait until a new version of the content view is released and they are life cycled
* once there are no more active users, we can stop syncing the product since we don't need updated errata anymore, we remove it from `roles/content/tasks/sync_plans.yaml`
* at this point, there are still old versions of content views that may contain the product. it will take a while until `playbooks/content_view_version_cleanup.yml` removes them
* after checking that there are no more dependencies on the product, they get changed to `state: absent` in `roles/content/tasks/products.yaml` removing them from our foreman, at this point the list of repositories is also removed from the file
* Once they are gone from Foreman they can be removed from this repo with the next major release (or any 0.x release)

## License

This collection is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
3 changes: 0 additions & 3 deletions playbooks/content_view_promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
- CentOS 7 Base x86_64
- AlmaLinux 9 Base x86_64
- Zabbix 3.0 Agent EL7 x86_64
- Zabbix 6.0 Agent EL7 x86_64
- Zabbix 6.0 Agent EL8 x86_64
- Zabbix 6.0 Agent EL9 x86_64
- CentOS 7 x86_64
- AlmaLinux 9 x86_64
rabe_foreman_lifecycle_environments:
Expand Down
3 changes: 0 additions & 3 deletions playbooks/content_view_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
- CentOS 7 Base x86_64
- AlmaLinux 9 Base x86_64
- Zabbix 3.0 Agent EL7 x86_64
- Zabbix 6.0 Agent EL7 x86_64
- Zabbix 6.0 Agent EL8 x86_64
- Zabbix 6.0 Agent EL9 x86_64
rabe_foreman_composite_content_views:
- CentOS 7 x86_64
- AlmaLinux 9 x86_64
Expand Down
2 changes: 2 additions & 0 deletions roles/content/tasks/content_views.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
product: RaBe Audio EL7
- name: Nux Dextop EL7
product: Nux Dextop EL7
- name: Zabbix 6.4 Official Repository - EL7 - x86_64
product: Zabbix 6.4 EL7
- name: AlmaLinux 9 Base x86_64
repositories:
- name: AlmaLinux 9 BaseOS x86_64
Expand Down
9 changes: 9 additions & 0 deletions roles/content/tasks/products.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,15 @@
url: https://repo.zabbix.com/non-supported/rhel/9/x86_64/
download_policy: on_demand
auto_enabled: false
- name: Zabbix 6.4 EL7
label: zabbix64el7
repositories:
- name: Zabbix 6.4 Official Repository - EL7 - x86_64
content_type: yum
label: zabbix64el7
url: https://repo.zabbix.com/zabbix/6.4/rhel/7/x86_64/
download_policy: on_demand
auto_enabled: false
- name: Zabbix 6.4 EL9
label: zabbix64
repositories:
Expand Down
3 changes: 1 addition & 2 deletions roles/content/tasks/sync_plans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
- Foreman Client 3.9 EL9
- RaBe Logstash Addons EL7
- Zabbix 3.0 (LTS) EL7
- Zabbix 6.0 (LTS) EL7
- Zabbix 6.0 (LTS) EL9
- Zabbix 6.4 EL7
- Zabbix 6.4 EL9
- RaBe Linux EL7
- RaBe Linux EL8
Expand Down