groups: potato = ( '/bin/grep -q 2.2 /etc/debian_version' ) woody = ( '/bin/grep -q 3.0 /etc/debian_version' ) editfiles: DebMirrorClient.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 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 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 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 BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.dk.potato" EmptyEntireFilePlease SetLine "# DO NOT EDIT - auto-created by cfengine $(date)" PrependIfNoLineMatching "^# .* cfengine .*" InsertFile "$(LocalCommon)/apt/sources.list.dk.potato" EndGroup } !DebMirrorClient|!dnai|!sunrise.woody:: { /etc/apt/sources.list BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.dk.woody" EmptyEntireFilePlease SetLine "# DO NOT EDIT - auto-created by cfengine $(date)" PrependIfNoLineMatching "^# .* cfengine .*" InsertFile "$(LocalCommon)/apt/sources.list.dk.woody" EndGroup }