Create basset01 stg with empty playbook
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
1fb815fff9
commit
780ab796c9
4 changed files with 62 additions and 0 deletions
12
inventory/group_vars/basset-stg
Normal file
12
inventory/group_vars/basset-stg
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 20000
|
||||
mem_size: 4096
|
||||
num_cpus: 2
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 443 ]
|
||||
|
||||
fas_client_groups: sysadmin-main
|
12
inventory/host_vars/basset01.stg.phx2.fedoraproject.org
Normal file
12
inventory/host_vars/basset01.stg.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
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-7
|
||||
ks_repo: http://10.5.126.23/repo/rhel/RHEL7-x86_64/
|
||||
|
||||
volgroup: /dev/vg_guests
|
||||
eth0_ip: 10.5.126.138
|
||||
vmhost: virthost12.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -68,6 +68,9 @@ badges-web02.phx2.fedoraproject.org
|
|||
[badges-web-stg]
|
||||
badges-web01.stg.phx2.fedoraproject.org
|
||||
|
||||
[basset-stg]
|
||||
basset01.stg.phx2.fedoraproject.org
|
||||
|
||||
[bastion]
|
||||
bastion01.phx2.fedoraproject.org
|
||||
bastion02.phx2.fedoraproject.org
|
||||
|
|
35
playbooks/groups/basset.yml
Normal file
35
playbooks/groups/basset.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
# create a new basset server
|
||||
|
||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=packages:packages-stg"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: basset-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
|
||||
- nagios/client
|
||||
- hosts
|
||||
- fas_client
|
||||
- collectd/base
|
||||
- rsyncd
|
||||
- sudo
|
||||
- { role: openvpn/client,
|
||||
when: env != "staging" }
|
||||
- apache
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
- include: "{{ tasks }}/mod_wsgi.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue