add omapi key support
diff --git a/isc_dhcp/files/dhcpd.conf b/isc_dhcp/files/dhcpd.conf
index ec97e4c..8cfe205 100644
--- a/isc_dhcp/files/dhcpd.conf
+++ b/isc_dhcp/files/dhcpd.conf
@@ -5,6 +5,14 @@
 omapi-port {{ server.omapi_port }};
 {% endif -%}
 
+{- if server.omapi_key and server.omapi_port is defined %}
+key omapi_key {
+ algorithm HMAC-MD5;
+ secret "{{ server.omapi_key }}";
+};
+omapi-key omapi_key;
+{%- endif %}
+
 {%- if server.ddns_updates is defined %}
 
 ddns-updates on;
@@ -91,4 +99,4 @@
 include "{{ server.config_dir }}/dhcpd.hosts";
 include "{{ server.config_dir }}/dhcpd.subnets";
 
-{%- endif %}
\ No newline at end of file
+{%- endif %}