0.1.6-DEV-20200214-235451
------------------------- * ADD: - added dummy static_assignments value for ci testing * MODIFY: - modified dhcp_deploy_to -> dhcp_vlan; changes templates/dhcpd_conf.j2
This commit is contained in:
parent
21dd4cbc34
commit
e6dc9047d4
@ -15,7 +15,7 @@ dhcp_max_lease : 604800
|
||||
dhcp_pxeboot_file : pxelinux.0
|
||||
|
||||
|
||||
dhcp_deploy_to: vlan1
|
||||
dhcp_vlan: "{{ deploy_to | default('vlan1') }}"
|
||||
|
||||
|
||||
dhcp_networks:
|
||||
|
@ -19,16 +19,17 @@ max-lease-time {{ dhcp_max_lease }};
|
||||
authoritative;
|
||||
{% endif %}
|
||||
|
||||
subnet {{ dhcp_networks[dhcp_deploy_to].subnet }} netmask {{ dhcp_networks[dhcp_deploy_to].netmask }}
|
||||
subnet {{ dhcp_networks[dhcp_vlan].subnet }} netmask {{ dhcp_networks[dhcp_vlan].netmask }}
|
||||
{
|
||||
range {{ dhcp_networks[dhcp_deploy_to].range_from }} {{ dhcp_networks[dhcp_deploy_to].range_to }};
|
||||
option routers {{ dhcp_networks[dhcp_deploy_to].router }};
|
||||
option broadcast-address {{ dhcp_networks[dhcp_deploy_to].broadcast }};
|
||||
range {{ dhcp_networks[dhcp_vlan].range_from }} {{ dhcp_networks[dhcp_vlan].range_to }};
|
||||
option routers {{ dhcp_networks[dhcp_vlan].router }};
|
||||
option broadcast-address {{ dhcp_networks[dhcp_vlan].broadcast }};
|
||||
option domain-name "{{ dhcp_domain_name }}";
|
||||
option domain-name-servers {{ dhcp_networks[dhcp_deploy_to].dns }};
|
||||
option domain-name-servers {{ dhcp_networks[dhcp_vlan].dns }};
|
||||
|
||||
filename "{{ dhcp_pxeboot_file }}";
|
||||
next-server {{ dhcp_networks[dhcp_deploy_to].pxeboot }};
|
||||
next-server {{ dhcp_networks[dhcp_vlan].pxeboot }};
|
||||
|
||||
|
||||
### STATIC ASSIGNMENTS ###
|
||||
{% for host in static_assignments %}
|
||||
|
@ -1,5 +1,13 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
|
||||
vars:
|
||||
static_assignments:
|
||||
dummy-host:
|
||||
mac_address: "AA:AA:AA:AA:AA:AA"
|
||||
ip_address : "127.0.0.1"
|
||||
|
||||
|
||||
roles:
|
||||
- zen_dhcpd
|
||||
- zen_dhcpd
|
||||
|
Loading…
x
Reference in New Issue
Block a user