Prepare for basset prod deployment
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
6cc0f2d440
commit
ed020656af
4 changed files with 32 additions and 6 deletions
14
inventory/group_vars/basset
Normal file
14
inventory/group_vars/basset
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
# Define resources for this group of hosts here.
|
||||||
|
lvm_size: 20000
|
||||||
|
mem_size: 4096
|
||||||
|
num_cpus: 2
|
||||||
|
|
||||||
|
custom_rules: [
|
||||||
|
# fas01, fas02, and fas03
|
||||||
|
'-A INPUT -p tcp -m tcp -s 10.5.126.25 --dport 80 -j ACCEPT',
|
||||||
|
'-A INPUT -p tcp -m tcp -s 10.5.126.26 --dport 80 -j ACCEPT',
|
||||||
|
'-A INPUT -p tcp -m tcp -s 10.5.126.30 --dport 80 -j ACCEPT'
|
||||||
|
]
|
||||||
|
|
||||||
|
fas_client_groups: sysadmin-main
|
|
@ -4,9 +4,9 @@ lvm_size: 20000
|
||||||
mem_size: 4096
|
mem_size: 4096
|
||||||
num_cpus: 2
|
num_cpus: 2
|
||||||
|
|
||||||
# for systems that do not match the above - specify the same parameter in
|
custom_rules: [
|
||||||
# the host_vars/$hostname file
|
# fas01.stg
|
||||||
|
'-A INPUT -p tcp -m tcp -s 10.5.126.86 --dport 80 -j ACCEPT',
|
||||||
tcp_ports: [ 443 ]
|
]
|
||||||
|
|
||||||
fas_client_groups: sysadmin-main
|
fas_client_groups: sysadmin-main
|
||||||
|
|
12
inventory/host_vars/basset01.phx2.fedoraproject.org
Normal file
12
inventory/host_vars/basset01.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.194
|
||||||
|
vmhost: virthost19.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
|
@ -1,9 +1,9 @@
|
||||||
# create a new basset server
|
# create a new basset server
|
||||||
|
|
||||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=basset-stg"
|
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=basset:basset-stg"
|
||||||
|
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: basset-stg
|
hosts: basset:basset-stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue