diff --git a/inventory/group_vars/taskotron-dev-client-hosts b/inventory/group_vars/taskotron-dev-client-hosts new file mode 100644 index 0000000000..fdcfdf1dc5 --- /dev/null +++ b/inventory/group_vars/taskotron-dev-client-hosts @@ -0,0 +1,4 @@ +--- +nrpe_procs_warn: 900 +nrpe_procs_crit: 1000 + diff --git a/inventory/inventory b/inventory/inventory index bcbbb12fb3..8f00f9490b 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -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 diff --git a/playbooks/groups/taskotron-client-hosts.yml b/playbooks/groups/taskotron-client-hosts.yml new file mode 100644 index 0000000000..0501f38ba4 --- /dev/null +++ b/playbooks/groups/taskotron-client-hosts.yml @@ -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"