Skip to content

Commit

Permalink
Merge pull request #2 from mrlesmithjr/enhancement/update-example-pla…
Browse files Browse the repository at this point in the history
…ybook

Updated example playbook
  • Loading branch information
mrlesmithjr authored May 7, 2017
2 parents e8bfe27 + 97e96ac commit 51d0e7a
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,76 @@
---
- hosts: dhcp_servers
vars:
kea_dhcp_config: true
kea_dhcp_dhcp4_config:
Dhcp4:
renew-timer: 1000
rebind-timer: 2000
# Add names of interfaces to listen on
interfaces-config:
interfaces:
- '*'
# - 'eth0'
# - 'eth1'
dhcp-socket-type: 'raw'
# Use Memfile lease database backend to store leases in a CSV file.
lease-database:
type: 'memfile'
persist: true
lfc-interval: 0
# Setup reclamation of the expired leases and leases affinity.
expired-leases-processing:
reclaim-timer-wait-time: 10
flush-reclaimed-timer-wait-time: 25
hold-reclaimed-time: 3600
max-reclaim-leases: 100
max-reclaim-time: 250
unwarned-reclaim-cycles: 5
# Global (inherited by all subnets) lease lifetime is mandatory parameter.
valid-lifetime: 4000
# Below an example of the simple subnet declarations
subnet4:
- subnet: '192.0.2.0/24'
next-server: '192.0.2.234'
pools:
- pool: '192.0.2.1 - 192.0.2.200'
reservations:
- hw-address: '1a:1b:1c:1d:1e:1f'
ip-address: '192.0.2.202'
- subnet: '192.0.3.0/24'
pools:
- pool: '192.0.3.1 - 192.0.3.200'
relay:
ip-address: '10.0.0.1'
- subnet: '192.0.4.0/24'
pools:
- pool: '192.0.4.1 - 192.0.4.200'
option-data:
- name: 'domain-name-servers'
data: '8.8.8.8, 8.8.4.4'
- name: 'domain-name'
data: '{{ kea_dhcp_pri_domain_name }}'
- name: 'tftp-server-name'
data: 'tftp.{{ kea_dhcp_pri_domain_name }}'
- name: 'boot-file-name'
data: 'pxelinux.0'
dhcp-ddns:
enable-updates: false
qualifying-suffix: '{{ kea_dhcp_pri_domain_name }}'
# next-server: '0.0.0.0'
control-socket:
socket-type: 'unix'
socket-name: '/var/run/kea.socket'
# Logging configuration starts here. It tells Kea servers to store
# all log messages (on severity INFO or more) in a file.
# debuglevel variable is used on DEBUG level only.
Logging:
loggers:
- name: 'kea-dhcp4'
output_options:
- output: '/var/log/kea-dhcp4.log'
severity: 'INFO'
debuglevel: 0
pri_domain_name: 'test.vagrant.local'
roles:
- role: ansible-kea-dhcp
Expand Down

0 comments on commit 51d0e7a

Please sign in to comment.