diff --git a/kea.conf.pre b/kea.conf.pre new file mode 100644 index 0000000..52d22b6 --- /dev/null +++ b/kea.conf.pre @@ -0,0 +1,112 @@ +# This is a basic configuration for the Kea DHCPv4 and DHCPv6 servers. +# Subnet declarations are commented out and no interfaces are listed. +# Therefore, the servers will not listen or to any queries. The basic +# configuration must be extended to specify interfaces on which the +# servers should listen. Also, subnets and options must be declared. +{ + +# DHCPv4 configuration starts here. +"Dhcp4": +{ +# Add names of interfaces to listen on. + "interfaces": [ ], + +# Use Memfile lease database backend to store leases in a CSV file. + "lease-database": { + "type": "memfile" + }, + +# Global (inherited by all subnets) lease lifetime is mandatory parameter. + "valid-lifetime": 4000, + +# Below an example of the simple subnet declaration. Uncomment to +# enable it. This is a list, denoted with [ ], of structure, denoted +# with { }. Each structure describes a single subnet and may have +# several parameters. One of those parameters is "pools" that is +# also a list of structures. + "subnet4": [ +# { "subnet": "192.0.2.0/24", +# "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ] } + ] +}, + +# DHCPv6 configuration starts here. +"Dhcp6": +{ +# Add names of interfaces to listen on. + "interfaces": [ ], + +# Addresses will be assigned with preferred and valid lifetimes +# being 3000 and 4000, respectively. Client is told to start +# renewing after 1000 seconds. If the server does not repond +# after 2000 seconds since the lease was granted, client is supposed +# to start REBIND procedure (emergency renewal that allows switching +# to a different server). + "preferred-lifetime": 3000, + "valid-lifetime": 4000, + "renew-timer": 1000, + "rebind-timer": 2000, + +# The following list defines subnets. Uncomment to enable them. + "subnet6": [ +# { "subnet": "2001:db8:1::/64", +# "pools": [ { "pool": "2001:db8:1::/80" } ] }, +# { "subnet": "2001:db8:2::/64", +# "pools": [ { "pool": "2001:db8:2::/80" } ] }, +# { "subnet": "2001:db8:3::/64", +# "pools": [ { "pool": "2001:db8:3::/80" } ] }, +# { "subnet": "2001:db8:4::/64", +# "pools": [ { "pool": "2001:db8:4::/80" } ] } + ] +}, + +# DHCP DDNS configuration starts here. +"DhcpDdns": +{ + "ip_address": "127.0.0.1", + "port": 53001, + "tsig_keys": [], + "forward_ddns" : {}, + "reverse_ddns" : {} +}, + +# 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 + }, + { + "name": "kea-dhcp6", + "output_options": [ + { + "output": "/var/log/kea-dhcp6.log" + } + ], + "severity": "INFO", + "debuglevel": 0 + }, + { + "name": "kea-dhcp-ddns", + "output_options": [ + { + "output": "/var/log/kea-ddns.log" + } + ], + "severity": "INFO", + "debuglevel": 0 + } + ] +} + +} diff --git a/kea.spec b/kea.spec index de7d4ec..8e4bbfa 100644 --- a/kea.spec +++ b/kea.spec @@ -15,6 +15,9 @@ License: ISC and Boost URL: http://kea.isc.org Source0: http://ftp.isc.org/isc/kea/%{VERSION}/kea-%{VERSION}.tar.gz +# TODO: remove this with 1.0 +Source1: kea.conf.pre + # http://kea.isc.org/ticket/3529 Patch0: kea-systemd.patch @@ -111,6 +114,8 @@ touch %{buildroot}%{_sharedstatedir}/kea/kea-leases6.csv install -p -m 644 ext/LICENSE_1_0.txt %{buildroot}%{_defaultdocdir}/kea/ +install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/kea/kea.conf + %post %systemd_post kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service @@ -203,6 +208,7 @@ install -p -m 644 ext/LICENSE_1_0.txt %{buildroot}%{_defaultdocdir}/kea/ %changelog * Tue Nov 04 2014 Jiri Popelka - 0.9-3 - do not override @localstatedir@ globally +- include latest upstream kea.conf * Wed Sep 24 2014 Dan HorĂ¡k - 0.9-2 - valgrind available only on selected arches