Add docs-backend playbook and host
This commit is contained in:
parent
3f2d88081b
commit
646c3a9647
4 changed files with 67 additions and 0 deletions
9
inventory/group_vars/docs-backend
Normal file
9
inventory/group_vars/docs-backend
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
lvm_size: 50000
|
||||||
|
mem_size: 1024
|
||||||
|
num_cpus: 1
|
||||||
|
# for systems that do not match the above - specify the same parameter in
|
||||||
|
# the host_vars/$hostname file
|
||||||
|
|
||||||
|
tcp_ports: [ 873 ]
|
||||||
|
fas_client_groups: sysadmin-noc
|
10
inventory/host_vars/docs-backend01.phx2.fedoraproject.org
Normal file
10
inventory/host_vars/docs-backend01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
nm: 255.255.255.0
|
||||||
|
gw: 10.5.124.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/vg_guests00
|
||||||
|
eth0_ip: 10.5.126.45
|
||||||
|
vmhost: virthost14.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
|
@ -122,6 +122,9 @@ datagrepper01.stg.phx2.fedoraproject.org
|
||||||
[datagrepper-stg]
|
[datagrepper-stg]
|
||||||
datagrepper01.stg.phx2.fedoraproject.org
|
datagrepper01.stg.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
[docs-backend]
|
||||||
|
docs-backend01.phx2.fedoraproject.org
|
||||||
|
|
||||||
[fedmsg]
|
[fedmsg]
|
||||||
busgateway01.phx2.fedoraproject.org
|
busgateway01.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
|
45
playbooks/groups/docs-backend.yml
Normal file
45
playbooks/groups/docs-backend.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
- name: make docs-backend server
|
||||||
|
hosts: docs-backend
|
||||||
|
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: docs-backend
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- ${private}/vars.yml
|
||||||
|
- ${vars}/${ansible_distribution}.yml
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- /srv/web/infra/ansible/roles/base
|
||||||
|
- /srv/web/infra/ansible/roles/rkhunter
|
||||||
|
- /srv/web/infra/ansible/roles/denyhosts
|
||||||
|
- /srv/web/infra/ansible/roles/nagios_client
|
||||||
|
- /srv/web/infra/ansible/roles/fas_client
|
||||||
|
- /srv/web/infra/ansible/roles/yum-cron
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
# this is how you include other task lists
|
||||||
|
- include: $tasks/hosts.yml
|
||||||
|
- include: $tasks/yumrepos.yml
|
||||||
|
- include: $tasks/2fa_client.yml
|
||||||
|
- include: $tasks/collectd/client.yml
|
||||||
|
- include: $tasks/motd.yml
|
||||||
|
- include: $tasks/sudo.yml
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: $handlers/restart_services.yml
|
Loading…
Add table
Add a link
Reference in a new issue