summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.all
diff options
context:
space:
mode:
Diffstat (limited to 'cfengine/cf.services.all')
-rw-r--r--cfengine/cf.services.all56
1 files changed, 49 insertions, 7 deletions
diff --git a/cfengine/cf.services.all b/cfengine/cf.services.all
index 069dcaa..28c91d2 100644
--- a/cfengine/cf.services.all
+++ b/cfengine/cf.services.all
@@ -2,16 +2,58 @@ groups:
potato = ( '/bin/grep -q 2.2 /etc/debian_version' )
woody = ( '/bin/grep -q 3.0 /etc/debian_version' )
-links:
+editfiles:
DebMirrorClient.potato::
- /etc/apt/sources.list ->! /etc/local-COMMON/apt/sources.list.DEBMIRROR.potato
+ { /etc/apt/sources.list
+ BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.DEBMIRROR.potato"
+ EmptyEntireFilePlease
+ SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
+ PrependIfNoLineMatching "^# .* cfengine .*"
+ InsertFile "$(LocalCommon)/apt/sources.list.DEBMIRROR.potato"
+ EndGroup
+ }
DebMirrorClient.woody::
- /etc/apt/sources.list ->! /etc/local-COMMON/apt/sources.list.DEBMIRROR.woody
+ { /etc/apt/sources.list
+ BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.DEBMIRROR.woody"
+ EmptyEntireFilePlease
+ SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
+ PrependIfNoLineMatching "^# .* cfengine .*"
+ InsertFile "$(LocalCommon)/apt/sources.list.DEBMIRROR.woody"
+ EndGroup
+ }
dnai|sunrise.potato::
- /etc/apt/sources.list ->! /etc/local-COMMON/apt/sources.list.us.potato
+ { /etc/apt/sources.list
+ BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.us.potato"
+ EmptyEntireFilePlease
+ SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
+ PrependIfNoLineMatching "^# .* cfengine .*"
+ InsertFile "$(LocalCommon)/apt/sources.list.us.potato"
+ EndGroup
+ }
dnai|sunrise.woody::
- /etc/apt/sources.list ->! /etc/local-COMMON/apt/sources.list.us.woody
+ { /etc/apt/sources.list
+ BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.us.woody"
+ EmptyEntireFilePlease
+ SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
+ PrependIfNoLineMatching "^# .* cfengine .*"
+ InsertFile "$(LocalCommon)/apt/sources.list.us.woody"
+ EndGroup
+ }
!DebMirrorClient|!dnai|!sunrise.potato::
- /etc/apt/sources.list ->! /etc/local-COMMON/apt/sources.list.dk.potato
+ { /etc/apt/sources.list
+ BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.us.potato"
+ EmptyEntireFilePlease
+ SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
+ PrependIfNoLineMatching "^# .* cfengine .*"
+ InsertFile "$(LocalCommon)/apt/sources.list.us.potato"
+ EndGroup
+ }
!DebMirrorClient|!dnai|!sunrise.woody::
- /etc/apt/sources.list ->! /etc/local-COMMON/apt/sources.list.dk.potato
+ { /etc/apt/sources.list
+ BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.us.woody"
+ EmptyEntireFilePlease
+ SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
+ PrependIfNoLineMatching "^# .* cfengine .*"
+ InsertFile "$(LocalCommon)/apt/sources.list.us.woody"
+ EndGroup
+ }