From fd9294890b816e48be7230389b500ca44660890b Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 24 Jul 2013 22:15:22 +0000 Subject: [PATCH] Add taskbot01.qa instance for qa folks. --- inventory/group_vars/taskbot | 12 +++++ .../host_vars/taskbot01.qa.fedoraproject.org | 10 ++++ inventory/inventory | 3 ++ playbooks/groups/taskbot.yml | 46 +++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 inventory/group_vars/taskbot create mode 100644 inventory/host_vars/taskbot01.qa.fedoraproject.org create mode 100644 playbooks/groups/taskbot.yml diff --git a/inventory/group_vars/taskbot b/inventory/group_vars/taskbot new file mode 100644 index 0000000000..08cbaf6b83 --- /dev/null +++ b/inventory/group_vars/taskbot @@ -0,0 +1,12 @@ +--- +# common items for the releng-* boxes +lvm_size: 50000 +mem_size: 4096 +num_cpus: 4 +# for systems that do not match the above - specify the same parameter in +# the host_vars/$hostname file + +tcp_ports: [ 80, 443 ] +fas_client_groups: sysadmin-qa +nrpe_procs_warn: 250 +nrpe_procs_crit: 300 diff --git a/inventory/host_vars/taskbot01.qa.fedoraproject.org b/inventory/host_vars/taskbot01.qa.fedoraproject.org new file mode 100644 index 0000000000..f2b7abffe6 --- /dev/null +++ b/inventory/host_vars/taskbot01.qa.fedoraproject.org @@ -0,0 +1,10 @@ +--- +nm: 255.255.255.0 +gw: 10.5.126.254 +dns: 10.5.126.21 +ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6 +ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/ +volgroup: /dev/Guests00 +eth0_ip: 10.5.124.230 +vmhost: virthost-comm01.qa.fedoraproject.org +datacenter: phx2 diff --git a/inventory/inventory b/inventory/inventory index 99cbad967a..dc3ff37da8 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -319,6 +319,9 @@ openid01.stg.phx2.fedoraproject.org badges-backend01.stg.phx2.fedoraproject.org badges-web01.stg.phx2.fedoraproject.org +[taskbot] +taskbot01.qa.fedoraproject.org + [unbound-dns] unbound-ib01.fedoraproject.org unbound-telia01.fedoraproject.org diff --git a/playbooks/groups/taskbot.yml b/playbooks/groups/taskbot.yml new file mode 100644 index 0000000000..5c4e24ab9c --- /dev/null +++ b/playbooks/groups/taskbot.yml @@ -0,0 +1,46 @@ +# create a new taskbot server +# NOTE: make sure there is room/space for this server on the vmhost +# NOTE: most of these vars come from group_vars/mirrorlist or from hostvars + +- name: make taskbot server + hosts: taskbot + user: root + gather_facts: False + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + - ${vars}/${ansible_distribution}.yml + + tasks: + - include: $tasks/virt_instance_create.yml + + handlers: + - include: $handlers/restart_services.yml + +- name: make the box be real + hosts: taskbot + user: root + gather_facts: True + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - ${private}/vars.yml + - ${vars}/${ansible_distribution}.yml + + tasks: + # this is how you include other task lists + - include: $tasks/hosts.yml + - include: $tasks/yumrepos.yml + - include: $tasks/base.yml + - include: $tasks/fas_client.yml + - include: $tasks/2fa_client.yml + - include: $tasks/collectd/client.yml + - include: $tasks/motd.yml + - include: $tasks/sudo.yml + - include: $tasks/rkhunter.yml + - include: $tasks/denyhosts.yml + - include: $tasks/nagios_client.yml + + handlers: + - include: $handlers/restart_services.yml