From d2035a2e64eba9e38e53f9b2930fc8e7150c102e Mon Sep 17 00:00:00 2001 From: Juri Jensen Date: Wed, 9 Jan 2002 22:41:29 +0000 Subject: cfengine: Major changes in the way samba is handled - now all shares are individual for every site (see cf.services.file and local-COMMON/samba/smb-shares-raatstof.conf as an example). Bind's named.conf is now edited to include named_$(host).$(domain).conf - nothing more. The DNSServers part is also turned on again. A new section for DHCPServers are now included and turned on - it only switches /etc/init.d/dhcp on and copies the right dhcpd.conf file into /etc, nothing more. I've also added a new site to cf.site.xenux and cf.groups.xenux. Well, that's it for now... --- cfengine/cf.services.dhcp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cfengine/cf.services.dhcp') diff --git a/cfengine/cf.services.dhcp b/cfengine/cf.services.dhcp index 88a6f13..89e5e9a 100644 --- a/cfengine/cf.services.dhcp +++ b/cfengine/cf.services.dhcp @@ -2,6 +2,17 @@ control: AddInstallable = ( dhcpd_reload ) editfiles: + { /etc/init.d/dhcp + # + # First of all, this is a DHCP server so let's make it possible + # for DHCP to start. + # + LocateLineMatching "^run_dhcpd=.*" + BeginGroupIfNoLineMatching '^run_dhcpd=1' + ReplaceLineWith 'run_dhcpd=1' + EndGroup + DefineClasses "dhcpd_reload" + } { /etc/dhcp.conf # # We don't make the dhcp.conf dynamically, but instead we copy the contents @@ -16,6 +27,9 @@ editfiles: DefineClasses "dhcpd_reload" } +processes: + "dhcpd-2.2.x" restart "/etc/init.d/dhcp restart" + shellcommands: dhcpd_reload:: "/etc/init.d/dhcp force-reload" -- cgit v1.2.3