summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.dhcp
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-01-26 14:30:08 +0100
committerJonas Smedegaard <dr@jones.dk>2017-01-26 14:30:08 +0100
commite042b7bced715a9d0d6c660df453b1b68f263316 (patch)
tree13f1bcd2f7cccf87718d92b5fc9a112d4c3ea455 /cfengine/cf.services.dhcp
parentc778483fbd7829e2d41157ae6be2d7f1eef709f5 (diff)
Drop ancient unused files.
Diffstat (limited to 'cfengine/cf.services.dhcp')
-rw-r--r--cfengine/cf.services.dhcp65
1 files changed, 0 insertions, 65 deletions
diff --git a/cfengine/cf.services.dhcp b/cfengine/cf.services.dhcp
deleted file mode 100644
index 27dcdd3..0000000
--- a/cfengine/cf.services.dhcp
+++ /dev/null
@@ -1,65 +0,0 @@
-control:
- AddInstallable = ( dhcpd_reload dhcpd3 dhcpd3_reload )
-
-classes:
- #
- # Determine if this is a version 3 DHCP server
- #
- dhcpd3 = ( `/usr/bin/test -x /usr/sbin/dhcpd3` )
-
-editfiles:
- !dhcpd3::
- { /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/dhcpd.conf
- #
- # We don't make the dhcp.conf dynamically, but instead we copy the contents
- # of a master file, but only if it's newer than the one installed.
- #
- BeginGroupIfFileExists "/etc/local-COMMON/dhcpd.conf.$(site)"
- BeginGroupIfFileIsNewer "/etc/local-COMMON/dhcpd.conf.$(site)"
- AutoCreate
- EmptyEntireFilePlease
- InsertFile "/etc/local-COMMON/dhcpd.conf.$(site)"
- Append "# Edited by cfengine $(date)"
- EndGroup
- DefineClasses "dhcpd_reload"
- EndGroup
- }
- dhcpd3::
- { /etc/dhcp3/dhcpd.conf
- #
- # We don't make the dhcp.conf dynamically, but instead we copy the contents
- # of a master file, but only if it's newer than the one installed.
- #
- BeginGroupIfFileExists "/etc/local-COMMON/dhcp3/dhcpd_$(fqhost).conf"
- BeginGroupIfFileIsNewer "/etc/local-COMMON/dhcp3/dhcpd_$(fqhost).conf"
- AutoCreate
- EmptyEntireFilePlease
- InsertFile "/etc/local-COMMON/dhcp3/dhcpd_$(fqhost).conf"
- Append "# Edited by cfengine $(date)"
- EndGroup
- DefineClasses "dhcpd3_reload"
- EndGroup
- }
-
-processes:
- !dhcpd3::
- "dhcpd-2.2.x" restart "/etc/init.d/dhcp restart"
- dhcpd3::
- "dhcpd3" restart "/etc/init.d/dhcp3-server restart"
-
-shellcommands:
- dhcpd_reload::
- "/etc/init.d/dhcp force-reload"
- dhcpd3_reload::
- "/etc/init.d/dhcp3-server force-reload"