diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-26 13:16:11 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-10 22:30:23 +0100 |
commit | 9454fdbff511e965e4fd9eb187b7fe432dcd437e (patch) | |
tree | 616a430b46a4796dfbcbc53662a1f70af59720b5 /roles/space_server/templates/dhcpd | |
parent | f203f1ccf538955dbd81e9a81b4cb9da520a9afa (diff) | |
download | labitat-ansible-9454fdbff511e965e4fd9eb187b7fe432dcd437e.tar.gz labitat-ansible-9454fdbff511e965e4fd9eb187b7fe432dcd437e.tar.xz labitat-ansible-9454fdbff511e965e4fd9eb187b7fe432dcd437e.zip |
space_server: drop uneccessary subdirs
Diffstat (limited to 'roles/space_server/templates/dhcpd')
-rw-r--r-- | roles/space_server/templates/dhcpd/dhcpd.conf.j2 | 203 |
1 files changed, 0 insertions, 203 deletions
diff --git a/roles/space_server/templates/dhcpd/dhcpd.conf.j2 b/roles/space_server/templates/dhcpd/dhcpd.conf.j2 deleted file mode 100644 index 1b832e1..0000000 --- a/roles/space_server/templates/dhcpd/dhcpd.conf.j2 +++ /dev/null @@ -1,203 +0,0 @@ -# -# DHCP Server Configuration file. -# see /usr/share/doc/dhcp/dhcpd.conf.example -# see dhcpd.conf(5) man page -# - -# The ddns-updates-style parameter controls whether or not the server will -# attempt to do a DNS update when a lease is confirmed. We default to the -# behavior of the version 2 packages ('none', since DHCP v2 didn't -# have support for DDNS.) -ddns-update-style none; - -# option definitions common to all supported networks... -#option domain-name "labitat.dk"; -default-lease-time 3600; -max-lease-time 7200; -min-lease-time 600; - -# If this DHCP server is the official DHCP server for the local -# network, the authoritative directive should be uncommented. -authoritative; - -# Use this to send dhcp log messages to a different log file (you also -# have to hack syslog.conf to complete the redirection). -log-facility daemon; - - -# Admin net -subnet 10.42.0.0 netmask 255.255.255.0 { - range 10.42.0.50 10.42.0.69; - range 10.42.0.71 10.42.0.250; - option routers 10.42.0.1; - option domain-name-servers 185.38.175.0; - #option ntp-servers 90.185.0.18; -{% for host in local_hosts %} -{% if host.ips | ipaddr('10.42.0.0/24') %} -{% if 'mac' in host %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - host {{ host.name }} { - hardware ethernet {{ host.mac }}; - fixed-address {{ host.ips | ipaddr('10.42.0.0/24') | first }}; -{% if 'filename' in host %} - filename "{{ host.filename }}"; -{% endif %} - } -{% else %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - #host {{ host.name }} { - # fixed-address {{ host.ips | ipaddr('10.42.0.0/24') | first }}; - #} -{% endif %} -{% endif %} -{% endfor %} - - host spacewand { - hardware ethernet 00:1f:7b:b4:0e:00; - fixed-address 10.42.0.70; - } -} - - -# Wired net -subnet 10.42.1.0 netmask 255.255.255.0 { - range dynamic-bootp 10.42.1.50 10.42.1.250; - option routers 10.42.1.1; - option domain-name-servers 185.38.175.0; - #option ntp-servers 90.185.0.18; - next-server 10.42.1.1; - filename "pxelinux.0"; -{% for host in local_hosts %} -{% if host.ips | ipaddr('10.42.1.0/24') %} -{% if 'mac' in host %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - host {{ host.name }} { - hardware ethernet {{ host.mac }}; - fixed-address {{ host.ips | ipaddr('10.42.1.0/24') | first }}; -{% if 'filename' in host %} - filename "{{ host.filename }}"; -{% endif %} - } -{% else %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - #host {{ host.name }} { - # fixed-address {{ host.ips | ipaddr('10.42.1.0/24') | first }}; - #} -{% endif %} -{% endif %} -{% endfor %} -} - - -# Private wifi -subnet 10.42.2.0 netmask 255.255.255.0 { - range 10.42.2.50 10.42.2.250; - option routers 10.42.2.1; - option domain-name-servers 185.38.175.0; - #option ntp-servers 90.185.0.18; - next-server 10.42.2.1; - filename "pxelinux.0"; -{% for host in local_hosts %} -{% if host.ips | ipaddr('10.42.2.0/24') %} -{% if 'mac' in host %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - host {{ host.name }} { - hardware ethernet {{ host.mac }}; - fixed-address {{ host.ips | ipaddr('10.42.2.0/24') | first }}; -{% if 'filename' in host %} - filename "{{ host.filename }}"; -{% endif %} - } -{% else %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - #host {{ host.name }} { - # fixed-address {{ host.ips | ipaddr('10.42.2.0/24') | first }}; - #} -{% endif %} -{% endif %} -{% endfor %} -} - -# Free wifi -subnet 10.42.3.0 netmask 255.255.255.0 { - range 10.42.3.50 10.42.3.250; - option routers 10.42.3.1; - option domain-name-servers 185.38.175.0; - #option ntp-servers 90.185.0.18; -{% for host in local_hosts %} -{% if host.ips | ipaddr('10.42.3.0/24') %} -{% if 'mac' in host %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - host {{ host.name }} { - hardware ethernet {{ host.mac }}; - fixed-address {{ host.ips | ipaddr('10.42.3.0/24') | first }}; -{% if 'filename' in host %} - filename "{{ host.filename }}"; -{% endif %} - } -{% else %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - #host {{ host.name }} { - # fixed-address {{ host.ips | ipaddr('10.42.3.0/24') | first }}; - #} -{% endif %} -{% endif %} -{% endfor %} -} - -# Password protected wifi -subnet 10.42.4.0 netmask 255.255.255.0 { - range 10.42.4.50 10.42.4.250; - option routers 10.42.4.1; - option domain-name-servers 185.38.175.0; - #option ntp-servers 90.185.0.18; -{% for host in local_hosts %} -{% if host.ips | ipaddr('10.42.4.0/24') %} -{% if 'mac' in host %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - host {{ host.name }} { - hardware ethernet {{ host.mac }}; - fixed-address {{ host.ips | ipaddr('10.42.4.0/24') | first }}; -{% if 'filename' in host %} - filename "{{ host.filename }}"; -{% endif %} - } -{% else %} - -{% if 'description' in host %} - # {{ host.description }} -{% endif %} - #host {{ host.name }} { - # fixed-address {{ host.ips | ipaddr('10.42.4.0/24') | first }}; - #} -{% endif %} -{% endif %} -{% endfor %} -} |