preparing for config of new taskotron-client-host machine

This commit is contained in:
Tim Flink 2015-11-09 21:39:04 +00:00
parent 29b37d953e
commit e0fcb32d2e
3 changed files with 58 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
nrpe_procs_warn: 900
nrpe_procs_crit: 1000

View file

@ -700,6 +700,9 @@ taskotron-client27.qa.fedoraproject.org
taskotron-client28.qa.fedoraproject.org
taskotron-client29.qa.fedoraproject.org
[taskotron-dev-client-hosts]
qa11.qa.fedoraproject.org
[taskotron-stg]
taskotron-stg01.qa.fedoraproject.org
@ -759,7 +762,6 @@ qa03.qa.fedoraproject.org
qa04.qa.fedoraproject.org
qa09.qa.fedoraproject.org
qa10.qa.fedoraproject.org
qa11.qa.fedoraproject.org
qa12.qa.fedoraproject.org
qa13.qa.fedoraproject.org
qa14.qa.fedoraproject.org

View file

@ -0,0 +1,51 @@
# create a new taskotron client host server system
# NOTE: should be used with --limit most of the time
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
# This has an extra role that configures the virthost to be used with beaker for
# virtual machine clients
- name: basic configuration
hosts: taskotron-dev-client-hosts:taskotron-stg-client-hosts:taskotron-prod-client-hosts
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
- { role: denyhosts, when: ansible_distribution_major_version|int != 7 }
- nagios_client
- hosts
- fas_client
- collectd/base
- { role: iscsi_client, when: datacenter == "phx2" }
- sudo
- { role: openvpn/client, when: datacenter != "phx2" }
tasks:
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
#- name: configure taskotron client host
# hosts: taskotron-dev-client-hosts:taskotron-stg-client-hosts:taskotron-prod-client-hosts
# 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:
# - { role: taskotron/something, tags: ['something'] }
#
# handlers:
# - include: "{{ handlers }}/restart_services.yml"