Add gallery01.stg instance.
This commit is contained in:
parent
f66837a638
commit
7d1d6af988
5 changed files with 96 additions and 0 deletions
18
inventory/group_vars/gallery
Normal file
18
inventory/group_vars/gallery
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
# common items for the releng-* boxes
|
||||
lvm_size: 20000
|
||||
mem_size: 4096
|
||||
num_cpus: 2
|
||||
ks_url: http://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-rhel-6
|
||||
ks_repo: http://infrastructure.fedoraproject.org/repo/rhel/RHEL6-x86_64/
|
||||
install_command: /usr/sbin/virt-install -n ${inventory_hostname} -r ${mem_size}
|
||||
--disk ${volgroup}/${inventory_hostname}
|
||||
--vcpus=${num_cpus} -l ${ks_repo} -x
|
||||
"ksdevice=eth0 ks=${ks_url} ip=${eth0_ip} netmask=${nm}
|
||||
gateway=${gw} dns=${dns} console=tty0 console=ttyS0"
|
||||
--network=bridge=br0 --autostart --noautoconsole
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 80, 443 ]
|
18
inventory/group_vars/gallery-stg
Normal file
18
inventory/group_vars/gallery-stg
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 50000
|
||||
mem_size: 1024
|
||||
num_cpus: 2
|
||||
ks_url: http://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-rhel-6
|
||||
ks_repo: http://infrastructure.fedoraproject.org/repo/rhel/RHEL6-x86_64/
|
||||
install_command: /usr/sbin/virt-install -n ${inventory_hostname} -r ${mem_size}
|
||||
--disk ${volgroup}/${inventory_hostname}
|
||||
--vcpus=${num_cpus} -l ${ks_repo} -x
|
||||
"ksdevice=eth0 ks=${ks_url} ip=${eth0_ip} netmask=${nm}
|
||||
gateway=${gw} dns=${dns} console=tty0 console=ttyS0"
|
||||
--network=bridge=br0 --autostart --noautoconsole
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 80, 443 ]
|
10
inventory/host_vars/gallery01.stg.phx2.fedoraproject.org
Normal file
10
inventory/host_vars/gallery01.stg.phx2.fedoraproject.org
Normal file
|
@ -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/vg_guests
|
||||
eth0_ip: 10.5.126.70
|
||||
vmhost: virthost12.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -106,6 +106,9 @@ fedocal02.phx2.fedoraproject.org
|
|||
[fedocal-stg]
|
||||
fedocal01.stg.phx2.fedoraproject.org
|
||||
|
||||
[gallery-stg]
|
||||
gallery01.stg.phx2.fedoraproject.org
|
||||
|
||||
[build-infra]
|
||||
bvirthost01.phx2.fedoraproject.org
|
||||
bvirthost02.phx2.fedoraproject.org
|
||||
|
|
47
playbooks/groups/gallery.yml
Normal file
47
playbooks/groups/gallery.yml
Normal file
|
@ -0,0 +1,47 @@
|
|||
# create a new gallery server
|
||||
# NOTE: should be used with --limit most of the time
|
||||
# NOTE: make sure there is room/space for this server on the vmhost
|
||||
# NOTE: most of these vars come from group_vars/gallery-web* or from hostvars
|
||||
|
||||
- name: make gallery server
|
||||
hosts: gallery-stg
|
||||
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: gallery-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
- ${vars}/${ansible_distribution}.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/hosts.yml
|
||||
- include: $tasks/yumrepos.yml
|
||||
- include: $tasks/base.yml
|
||||
- include: $tasks/fas_client.yml
|
||||
- include: $tasks/2fa_client.yml
|
||||
- include: $tasks/motd.yml
|
||||
- include: $tasks/sudo.yml
|
||||
- include: $tasks/rkhunter.yml
|
||||
- include: $tasks/denyhosts.yml
|
||||
- include: $tasks/nagios_client.yml
|
||||
- include: $tasks/fedmsg_base.yml
|
||||
- include: $tasks/apache.yml
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
Loading…
Add table
Add a link
Reference in a new issue