add repospanner instance
This commit is contained in:
parent
a4a19995e4
commit
aae396bee5
5 changed files with 56 additions and 0 deletions
10
inventory/group_vars/repospanner
Normal file
10
inventory/group_vars/repospanner
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 100000
|
||||
mem_size: 8192
|
||||
num_cpus: 2
|
||||
|
||||
# For the MOTD
|
||||
csi_security_category: High
|
||||
csi_primary_contact: admin@fedoraproject.org / sysadmin-main-members
|
||||
csi_purpose: repospanner git syncing host
|
10
inventory/host_vars/repospanner01.phx2.fedoraproject.org
Normal file
10
inventory/host_vars/repospanner01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
eth0_ip: 10.5.126.60
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.128.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
|
||||
vmhost: virthost01.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -59,6 +59,9 @@ wiki02.phx2.fedoraproject.org
|
|||
copr-fe.cloud.fedoraproject.org
|
||||
retrace01.qa.fedoraproject.org
|
||||
|
||||
[repospanner]
|
||||
repospanner01.phx2.fedoraproject.org
|
||||
|
||||
[gdpr_delete]
|
||||
|
||||
[certgetter]
|
||||
|
|
31
playbooks/groups/repospanner.yml
Normal file
31
playbooks/groups/repospanner.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
# create a new dns server
|
||||
|
||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=repospanner"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: repospanner
|
||||
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
|
||||
- hosts
|
||||
- rkhunter
|
||||
- nagios_client
|
||||
- fas_client
|
||||
- collectd/base
|
||||
- sudo
|
||||
- openvpn/client
|
||||
|
||||
tasks:
|
||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
|
||||
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||
|
||||
handlers:
|
||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
|
@ -0,0 +1,2 @@
|
|||
# ifconfig-push actualIP PtPIP
|
||||
ifconfig-push 192.168.1.180 192.168.0.180
|
Loading…
Add table
Add a link
Reference in a new issue