summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.dhcp
diff options
context:
space:
mode:
authorJuri Jensen <juri@xenux.dk>2002-01-09 22:41:29 +0000
committerJuri Jensen <juri@xenux.dk>2002-01-09 22:41:29 +0000
commitd2035a2e64eba9e38e53f9b2930fc8e7150c102e (patch)
treefd48b49b38163683fbca74d1e39a58c77ee3f084 /cfengine/cf.services.dhcp
parent89f7f78402a0f4362f59ffd693b8491b34700abe (diff)
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...
Diffstat (limited to 'cfengine/cf.services.dhcp')
-rw-r--r--cfengine/cf.services.dhcp14
1 files changed, 14 insertions, 0 deletions
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"