Skip to content

Commit

Permalink
Added other roles
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrodie18 committed Oct 25, 2023
1 parent 82d7112 commit 5a53354
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion molecule/zabbix_agent_tests/common/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
groups:
- agent
- ${MY_MOLECULE_VERSION:-v64}
- ${MY_MOLECULE_VERSION:-v65}

provisioner:
name: ansible
Expand Down
2 changes: 1 addition & 1 deletion molecule/zabbix_javagateway/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
groups:
- ${MY_MOLECULE_VERSION:-v64}
- ${MY_MOLECULE_VERSION:-v65}
- ${MY_MOLECULE_INTERPRETER:-python3}
provisioner:
name: ansible
Expand Down
2 changes: 1 addition & 1 deletion molecule/zabbix_proxy/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
groups:
- ${MY_MOLECULE_DATABASE:-mysql}
- ${MY_MOLECULE_VERSION:-v64}
- ${MY_MOLECULE_VERSION:-v65}

provisioner:
name: ansible
Expand Down
5 changes: 4 additions & 1 deletion molecule/zabbix_proxy/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def test_zabbix_package(host):
database = ansible_data['zabbix_proxy_database']

zabbix_proxy = host.package(f'zabbix-proxy-%s' % database)
assert str(version) in zabbix_proxy.version
try:
assert str(version) in zabbix_proxy.version
except:
assert "7.0" in zabbix_proxy.version


def test_zabbix_proxy_dot_conf(host):
Expand Down
5 changes: 5 additions & 0 deletions roles/zabbix_agent/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
tags:
- always

- name: TEMP Update Version Number
ansible.builtin.set_fact:
zabbix_agent_version: 7.0
when: zabbix_agent_version == 6.5

- name: "RedHat | Installing zabbix-agent"
ansible.builtin.package:
pkg:
Expand Down
5 changes: 5 additions & 0 deletions roles/zabbix_javagateway/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
tags:
- install

- name: TEMP Update Version Number
ansible.builtin.set_fact:
zabbix_javagateway_version: 7.0
when: zabbix_javagateway_version == 6.5

- name: "RedHat | Installing zabbix-java-gateway"
ansible.builtin.package:
pkg: zabbix-java-gateway
Expand Down
5 changes: 5 additions & 0 deletions roles/zabbix_proxy/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
tags:
- install

- name: TEMP Update Version Number
ansible.builtin.set_fact:
zabbix_proxy_version: 7.0
when: zabbix_proxy_version == 6.5

- name: Install packages for Zabbix Repository
block:
- name: "RedHat | Installing zabbix-proxy-{{ zabbix_proxy_database }}"
Expand Down

0 comments on commit 5a53354

Please sign in to comment.