Add dhcp01 to ansible
This commit is contained in:
parent
e280dd0802
commit
e6e34b17f6
4 changed files with 76 additions and 1 deletions
13
inventory/group_vars/dhcp
Normal file
13
inventory/group_vars/dhcp
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 10000
|
||||
mem_size: 1024
|
||||
num_cpus: 1
|
||||
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 68 ]
|
||||
udp_ports: [ 69 ]
|
||||
|
||||
fas_client_groups: sysadmin-noc,fi-apprentice
|
12
inventory/host_vars/dhcp01.phx2.fedoraproject.org
Normal file
12
inventory/host_vars/dhcp01.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.125.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_bvirthost09
|
||||
vmhost: bvirthost09.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
||||
|
||||
eth0_ip: 10.5.125.43
|
|
@ -307,10 +307,12 @@ koji01.stg.phx2.fedoraproject.org
|
|||
[infracore]
|
||||
lockbox01.phx2.fedoraproject.org
|
||||
log02.phx2.fedoraproject.org
|
||||
dhcp01.phx2.fedoraproject.org
|
||||
noc01.phx2.fedoraproject.org
|
||||
noc02.fedoraproject.org
|
||||
|
||||
[dhcp]
|
||||
dhcp01.phx2.fedoraproject.org
|
||||
|
||||
[lockbox]
|
||||
lockbox-comm01.qa.fedoraproject.org
|
||||
|
||||
|
|
48
playbooks/groups/dhcp.yml
Normal file
48
playbooks/groups/dhcp.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
- name: make dhcp server
|
||||
hosts: dhcp
|
||||
user: root
|
||||
gather_facts: False
|
||||
accelerate: "{{ accelerated }}"
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "{{ private }}/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/virt_instance_create.yml"
|
||||
- include: "{{ tasks }}/accelerate_prep.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: dhcp
|
||||
user: root
|
||||
gather_facts: True
|
||||
accelerate: "{{ accelerated }}"
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "{{ private }}/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- nagios_client
|
||||
- hosts
|
||||
- fas_client
|
||||
- collectd/base
|
||||
- sudo
|
||||
- dhcp_server
|
||||
- tftp_server
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
- include: "{{ handlers }}/semanage.yml"
|
Loading…
Add table
Add a link
Reference in a new issue