summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.all
blob: 58cb3c3d8dbf100faadd59ac29b6dc642b5a4a69 (plain)
  1. groups:
  2.     potato = ( '/bin/grep -q 2.2 /etc/debian_version' )
  3. woody = ( '/bin/grep -q 3.0 /etc/debian_version' )
  4. editfiles:
  5. DebMirrorClient.potato::
  6. { /etc/apt/sources.list
  7. BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.DEBMIRROR.potato"
  8. EmptyEntireFilePlease
  9. SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
  10. PrependIfNoLineMatching "^# .* cfengine .*"
  11. InsertFile "$(LocalCommon)/apt/sources.list.DEBMIRROR.potato"
  12. EndGroup
  13. }
  14. DebMirrorClient.woody::
  15. { /etc/apt/sources.list
  16. BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.DEBMIRROR.woody"
  17. EmptyEntireFilePlease
  18. SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
  19. PrependIfNoLineMatching "^# .* cfengine .*"
  20. InsertFile "$(LocalCommon)/apt/sources.list.DEBMIRROR.woody"
  21. EndGroup
  22. }
  23. dnai|sunrise.potato::
  24. { /etc/apt/sources.list
  25. BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.us.potato"
  26. EmptyEntireFilePlease
  27. SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
  28. PrependIfNoLineMatching "^# .* cfengine .*"
  29. InsertFile "$(LocalCommon)/apt/sources.list.us.potato"
  30. EndGroup
  31. }
  32. dnai|sunrise.woody::
  33. { /etc/apt/sources.list
  34. BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.us.woody"
  35. EmptyEntireFilePlease
  36. SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
  37. PrependIfNoLineMatching "^# .* cfengine .*"
  38. InsertFile "$(LocalCommon)/apt/sources.list.us.woody"
  39. EndGroup
  40. }
  41. !DebMirrorClient|!dnai|!sunrise.potato::
  42. { /etc/apt/sources.list
  43. BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.dk.potato"
  44. EmptyEntireFilePlease
  45. SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
  46. PrependIfNoLineMatching "^# .* cfengine .*"
  47. InsertFile "$(LocalCommon)/apt/sources.list.dk.potato"
  48. EndGroup
  49. }
  50. !DebMirrorClient|!dnai|!sunrise.woody::
  51. { /etc/apt/sources.list
  52. BeginGroupIfFileIsNewer "$(LocalCommon)/apt/sources.list.dk.woody"
  53. EmptyEntireFilePlease
  54. SetLine "# DO NOT EDIT - auto-created by cfengine $(date)"
  55. PrependIfNoLineMatching "^# .* cfengine .*"
  56. InsertFile "$(LocalCommon)/apt/sources.list.dk.woody"
  57. EndGroup
  58. }