Commit f833a31c authored by Robin Sonnabend's avatar Robin Sonnabend Committed by Lars Beckers
Browse files

Enhance readability of dhcp-config

parent 2f126a31
......@@ -31,7 +31,7 @@
- dhcp-server
- name: ensure we have a tftp root dir
file: name="{{tftp_root}}" state=directory owner="{{dnsmasq_user}}" group="{{dnsmasq_group}}" mode=0644
file: name="{{tftp_root}}" state=directory owner="{{dnsmasq_user}}" group="{{dnsmasq_group}}" mode=0755
when: tftp_active
tags:
- config
......
# This file was AUTOMATICALLY generated by ansible
# changing it manually won't last long
# PLEASE change vars/dhcp in the ansible repository instead.
# No DNS function, just dhcp & pxe
port=0
......@@ -12,13 +16,11 @@ dhcp-range={% if dhcp_range.tag is defined %}set:{{dhcp_range.tag}},{% endif %}{
{% endfor %}
{% for dhcp_host in dhcp_fixed_hosts %}
dhcp-host={{dhcp_host.mac}},{{lookup('dig', dhcp_host.name)}}
dhcp-host={{dhcp_host.mac|upper}},{{lookup('dig', dhcp_host.name)}} # {{dhcp_host.name}}
{% endfor %}
{% for dhcp_option in dhcp_options %}
dhcp-option{% if dhcp_option.force is defined and dhcp_option.force %}-force{% endif %}={% if dhcp_option.tag is defined %}tag:{{dhcp_option.tag}},{% endif %}option:{{dhcp_option.option}},{{dhcp_option.value}}
{% endfor %}
# Send options to PXELinux. Note that we need to send the options even
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment