ansible-dhcpd/defaults/main.yml

184 lines
4.3 KiB
YAML
Raw Normal View History

---
2015-03-28 22:34:25 +00:00
# Default variables
# =================
2015-03-28 22:34:25 +00:00
# .. contents:: Sections
# :local:
#
# -------------------
# General options
# -------------------
# .. envvar:: dhcpd_mode
#
# What service type to configure on this host:
2015-03-28 22:34:25 +00:00
#
# - ``server``: host is an ISC DHCP server, see ``dhcpd(8)``
#
# - ``relay``: host is an ISC DHCP relay, see dhcrelay(8)
#
dhcpd_mode: 'server'
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_base_packages_map
#
# What packages should be installed, depending on mode of operation
dhcpd_base_packages_map:
'server': [ 'isc-dhcp-server' ]
'relay': [ 'isc-dhcp-relay' ]
2015-03-28 22:34:25 +00:00
# --------------------------------
# ISC DHCP Relay configuration
# --------------------------------
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_relay_servers
#
# List of DHCP servers which should receive the relayed packets
dhcpd_relay_servers: [ '{{ ansible_default_ipv4.gateway }}' ]
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_relay_interfaces
#
# List of network interfaces that dhcrelay should listen on
dhcpd_relay_interfaces: []
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_relay_options
#
# Additional dhcrelay options
dhcpd_relay_options: '-4'
# ---------------------------------
# ISC DHCP Server configuration
# ---------------------------------
# .. envvar:: dhcpd_server_options
#
# dhcpd(8) options
dhcpd_server_options: '-4'
# ---------------------------
# DHCP main configuration
# ---------------------------
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_authoritative
#
# Is this DHCP server authoritative?
dhcpd_authoritative: False
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_interfaces
#
# List of network interfaces to listen on for DHCP requests
# If this list is empty, Ansible will try to guess correct interfaces
# automatically
dhcpd_interfaces: []
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_domain
#
# Default domain to use
dhcpd_domain: '{{ ansible_domain }}'
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_dns_servers
#
# List of default DNS servers. By default, point users to the same host that
# serves them DHCP requests, on default interface. If this host is a router,
# you might need to set DNS server to internal interface IP address.
dhcpd_dns_servers: [ '{{ ansible_default_ipv4.address }}' ]
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_lease_time
#
# Max lease time in hours (default lease time is calculated below)
dhcpd_lease_time: 24
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_global_options
#
# Default global options formatted as a text block
dhcpd_global_options: |
option domain-name "{{ ansible_domain }}";
option domain-name-servers {{ dhcpd_dns_servers | join(' ') }};
default-lease-time {{ (((dhcpd_lease_time / 2) + 6) * 60 * 60)|round|int }};
max-lease-time {{ (dhcpd_lease_time * 60 * 60)|round|int }};
log-facility local7;
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_options
#
# Custom options formatted as a text block
dhcpd_options: False
2015-03-28 22:34:25 +00:00
# ----------------------------------------
# ISC DHCP Server configuration scopes
# ----------------------------------------
# These lists allow you to generate nested configuration scopes in
# dhcpd.conf. Most of the information about them can be found in dhcpd.conf(5)
# manual page. You can create nested configuration using Ansible variable
2015-03-28 22:34:25 +00:00
# expansion.
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_keys
#
# List of secret keys used for Dynamic DNS configuration. See
# :ref:`dhcpd_keys` for more details.
2014-12-18 13:10:12 +00:00
dhcpd_keys: []
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_classes
#
# List of client classes (see dhcpd.conf(5)). More informaction can be found in
# :ref:`dhcpd_classes`.
dhcpd_classes: []
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_groups
#
# List of configuration scopes groped together. See :ref:`dhcpd_groups` for
# more details.
dhcpd_groups: []
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_shared_networks
#
# List of shared networks grouping specified subnets together. See
# :ref:`dhcpd_shared_networks` for more details.
dhcpd_shared_networks: []
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_subnets
#
2015-03-28 22:34:25 +00:00
# List of subnets not in a shared network. See :ref:`dhcpd_subnets` for more
# details.
dhcpd_subnets: [ '{{ dhcpd_subnet_default }}' ]
# Default subnet managed automatically
dhcpd_subnet_default:
subnet: '{{ ansible_default_ipv4.network }}'
netmask: '{{ ansible_default_ipv4.netmask }}'
comment: 'Generated automatically by Ansible'
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_hosts
#
# Global list of hosts in DHCP. See ref:`dhcpd_hosts` for more details.
dhcpd_hosts: []
2015-03-28 22:34:25 +00:00
# List of external files to include. See :ref:`dhcpd_includes` for more
# details.
dhcpd_includes: []
2015-03-28 22:34:25 +00:00
# .. envvar:: dhcpd_failovers
2014-11-28 09:54:28 +00:00
#
2015-03-28 22:34:25 +00:00
# DHCP failover configuration. See :ref:`dhcpd_failovers` for more details.
2014-11-28 09:54:28 +00:00
dhcpd_failovers: []
2014-11-28 10:00:19 +00:00