chef-lctp/site-cookbooks/dhcp/recipes/default.rb

26 lines
544 B
Ruby
Raw Normal View History

2014-01-19 14:34:01 +00:00
include_recipe "apt"
package "isc-dhcp-server"
2014-01-21 22:11:25 +00:00
template "/etc/dhcp/dhcpd.conf" do
2014-01-19 14:34:01 +00:00
owner "root"
group "root"
2014-01-21 22:11:25 +00:00
mode "0664"
2014-01-19 14:34:01 +00:00
source "dhcpd.conf.erb"
2014-01-21 22:11:25 +00:00
notifies :reload, "service[isc-dhcp-server]"
end
template "/etc/default/isc-dhcp-server" do
owner "root"
group "root"
mode "0664"
source "isc-dhcp-server.erb"
notifies :reload, "service[isc-dhcp-server]"
end
service "isc-dhcp-server" do
provider Chef::Provider::Service::Upstart
action [:enable, :start]
supports status: true, start: true, stop: true, restart: true
2014-01-19 14:34:01 +00:00
end