summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.all
diff options
context:
space:
mode:
authorJuri Jensen <juri@xenux.dk>2002-08-28 11:33:44 +0000
committerJuri Jensen <juri@xenux.dk>2002-08-28 11:33:44 +0000
commit4a43e82a99e13a5b7546ec049b6885d82b3c9285 (patch)
tree9198847223ffb89612459ff0921d7bafec1ea448 /cfengine/cf.services.all
parent4480f7b2a88b9eadf35b042b6efc012813479fd8 (diff)
cfengine: Modified the apt section to use editfiles instead of links.
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
+ }