Skip to content

Commit

Permalink
Cleanup what I forgot to get earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrodie18 committed Jun 5, 2024
1 parent d5447bc commit bcfc22a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 102 deletions.
45 changes: 0 additions & 45 deletions molecule/zabbix_manage_repo/tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,3 @@ def test_zabbix_manage_repo_installed(host):
elif os in ["debian", "ubuntu"]:
result = host.ansible("command", "apt update", check=False, become=True)["rc"]
assert result == 0

# def test_zabbiserver_running_and_enabled(host):
# zabbix = host.service("zabbix-server")
# if host.system_info.distribution == "centos":
# assert zabbix.is_enabled
# assert zabbix.is_running
# else:
# assert zabbix.is_running


# def test_zabbix_package(host):
# ansible_data = host.ansible.get_variables()
# version = ansible_data['zabbix_server_version']
# database = ansible_data['zabbix_server_database']

# zabbix_server = host.package(f'zabbix-server-%s' % database)
# assert str(version) in zabbix_server.version


# def test_zabbix_server_dot_conf(host):
# zabbix_server_conf = host.file("/etc/zabbix/zabbix_server.conf")
# assert zabbix_server_conf.exists
# assert zabbix_server_conf.user == "zabbix"
# assert zabbix_server_conf.group == "zabbix"
# assert zabbix_server_conf.mode == 0o640

# assert zabbix_server_conf.contains("ListenPort=10051")
# assert zabbix_server_conf.contains("DebugLevel=3")


# def test_zabbix_include_dir(host):
# zabbix_include_dir = host.file("/etc/zabbix/zabbix_server.conf.d")
# assert zabbix_include_dir.is_directory
# assert zabbix_include_dir.user == "zabbix"
# assert zabbix_include_dir.group == "zabbix"


# def test_zabbix_server_logfile(host):
# zabbix_logfile = host.file("/var/log/zabbix/zabbix_server.log")
# assert zabbix_logfile.exists
# assert not zabbix_logfile.contains("Access denied for user")
# assert not zabbix_logfile.contains("database is down: reconnecting")
# assert not zabbix_logfile.contains("Both are missing in the system.") # Missing fping
# assert zabbix_logfile.contains("current database version")
# assert zabbix_logfile.contains(r"server #0 started \[main process\]")
19 changes: 0 additions & 19 deletions roles/zabbix_agent/tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
---
# Tasks specific for RedHat systems

# - name: "RedHat | Install basic repo file"
# ansible.builtin.yum_repository:
# name: "{{ item.name }}"
# description: "{{ item.description }}"
# baseurl: "{{ item.baseurl }}"
# gpgcheck: "{{ item.gpgcheck }}"
# gpgkey: "{{ item.gpgkey }}"
# mode: "{{ item.mode | default('0644') }}"
# priority: "{{ item.priority | default('99') }}"
# state: "{{ item.state | default('present') }}"
# proxy: "{{ zabbix_http_proxy | default(omit) }}"
# with_items: "{{ zabbix_repo_yum }}"
# register: yum_repo_installed
# become: true
# notify:
# - "clean repo files from proxy creds"
# tags:
# - install

- name: Check if warn parameter can be used for shell module
ansible.builtin.set_fact:
produce_warn: False
Expand Down
19 changes: 0 additions & 19 deletions roles/zabbix_javagateway/tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
---
# Tasks specific for RedHat systems

# - name: "RedHat | Install basic repo file"
# ansible.builtin.yum_repository:
# name: "{{ item.name }}"
# description: "{{ item.description }}"
# baseurl: "{{ item.baseurl }}"
# gpgcheck: "{{ item.gpgcheck }}"
# gpgkey: "{{ item.gpgkey }}"
# mode: "{{ item.mode | default('0644') }}"
# priority: "{{ item.priority | default('99') }}"
# state: "{{ item.state | default('present') }}"
# proxy: "{{ zabbix_http_proxy | default(omit) }}"
# with_items: "{{ zabbix_repo_yum }}"
# register: yum_repo_installed
# become: true
# notify:
# - "clean repo files from proxy creds"
# tags:
# - install

- name: "RedHat | Installing zabbix-java-gateway"
ansible.builtin.package:
pkg: zabbix-java-gateway
Expand Down
19 changes: 0 additions & 19 deletions roles/zabbix_web/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@
tags:
- always

# - name: "RedHat | Install basic repo file"
# ansible.builtin.yum_repository:
# name: "{{ item.name }}"
# description: "{{ item.description | default(omit) }}"
# baseurl: "{{ item.baseurl }}"
# gpgcheck: "{{ item.gpgcheck | default(omit) }}"
# gpgkey: "{{ item.gpgkey | default(omit) }}"
# mode: "{{ item.mode | default('0644') }}"
# priority: "{{ item.priority | default('99') }}"
# state: "{{ item.state | default('present') }}"
# proxy: "{{ zabbix_http_proxy | default(omit) }}"
# with_items: "{{ zabbix_repo_yum }}"
# register: yum_repo_installed
# become: true
# notify:
# - "clean repo files from proxy creds"
# tags:
# - install

- name: "RedHat | Install zabbix-web-{{ zabbix_server_database }}"
ansible.builtin.yum:
name:
Expand Down

0 comments on commit bcfc22a

Please sign in to comment.