[backuppc] Factorisation, en vue d'avoir une conf modulaire.

This commit is contained in:
Pierre-Elliott Bécue 2014-04-18 03:31:23 +02:00
parent 0ad3877053
commit ee3a587b66
5 changed files with 144 additions and 59 deletions

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8; mode: python -*-
include("backups")
info["owner"] = "backuppc"
info["group"] = "adm"
@ -67,13 +70,5 @@ def backuppc_hosts(comment, hostslist):
@#larson 1 bill # <--- example DHCP host entry
@
backuppc_hosts("Backups des homes", ["adherentsak", "adherentslz"])
# TODO: ci-dessous gérer cette liste via un groupe bcfg2
backuppc_hosts("Backups des serveurs",
["asterisk", "babar", "cas", "charybde", "dhcp", "irc",
"kdell", "komaz", "nat64", "news", "niomniom",
"o2",
"owl", "radius", "redisdead", "routeur",
"sable", "thot", "titanic", "tracker", "vert", "vo",
"xmpp",
"zamok", "zbee"])
backuppc_hosts("Backups des homes", HomeHosts)
backuppc_hosts("Backups des serveurs", RsyncHosts)