add zabbix config playbook for vm
Signed-off-by: siddharthvipul <siddharthvipul1@gmail.com>
This commit is contained in:
parent
c71ab07c4e
commit
261ee786c0
2 changed files with 31 additions and 0 deletions
|
@ -713,6 +713,7 @@ vmhost-x86-10.stg.iad2.fedoraproject.org
|
||||||
vmhost-x86-11.stg.iad2.fedoraproject.org
|
vmhost-x86-11.stg.iad2.fedoraproject.org
|
||||||
vmhost-x86-12.stg.iad2.fedoraproject.org
|
vmhost-x86-12.stg.iad2.fedoraproject.org
|
||||||
wiki01.stg.iad2.fedoraproject.org
|
wiki01.stg.iad2.fedoraproject.org
|
||||||
|
zabbix01.stg.iad2.fedoraproject.org
|
||||||
|
|
||||||
# This is a list of hosts that are a little "friendly" with staging.
|
# This is a list of hosts that are a little "friendly" with staging.
|
||||||
# They are exempted from the iptables wall between staging and prod.
|
# They are exempted from the iptables wall between staging and prod.
|
||||||
|
|
30
playbooks/groups/zabbix.yml
Normal file
30
playbooks/groups/zabbix.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=zabbix_stg"
|
||||||
|
|
||||||
|
- name: make the box be real
|
||||||
|
hosts: zabbix_stg
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- base
|
||||||
|
- rkhunter
|
||||||
|
- hosts
|
||||||
|
- { role: fas_client, when: env != "staging" }
|
||||||
|
- { role: ipa/client, when: env == "staging" }
|
||||||
|
- collectd/base
|
||||||
|
- apache
|
||||||
|
- sudo
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue