]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dhcpd/recipes/default.rb
Use ruby cookbook to install ruby for prometheus
[chef.git] / cookbooks / dhcpd / recipes / default.rb
index 1a85f8400511407293ade3ecbcfbb6cff66358b6..0e6b9ec3fcf35f330241105acb7fde1b1c98c100 100644 (file)
@@ -63,10 +63,18 @@ template "/etc/dhcp/dhcpd.conf" do
   variables :domain => domain
 end
 
+template "/etc/default/isc-dhcp-server" do
+  source "default.erb"
+  owner "root"
+  group "root"
+  mode "644"
+end
+
 service "isc-dhcp-server" do
   action [:enable, :start]
   supports :status => true, :restart => true
   subscribes :restart, "template[/etc/dhcp/dhcpd.conf]"
+  subscribes :restart, "template[/etc/default/isc-dhcp-server]"
 end
 
 service "isc-dhcp-server6" do