mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 05:51:56 +08:00
Prepare for basset prod deployment
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
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
|
||||
num_cpus: 2
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 443 ]
|
||||
custom_rules: [
|
||||
# fas01.stg
|
||||
'-A INPUT -p tcp -m tcp -s 10.5.126.86 --dport 80 -j ACCEPT',
|
||||
]
|
||||
|
||||
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
|
||||
|
||||
- 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
|
||||
hosts: basset-stg
|
||||
hosts: basset:basset-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user