Wheezy commence à arriver, et lenny dégage.
Ignore-this: 48bb60befbcca9f66a7b2f5ebb9d8201 darcs-hash:20121205211802-b6762-28880c06f512803baa322a695e8154a7b6192be3.gz
This commit is contained in:
parent
637a77eb95
commit
e00c869c2f
5 changed files with 25 additions and 22 deletions
|
@ -62,14 +62,9 @@ service("backuppc-server",
|
|||
pidf="backuppc/BackupPC")
|
||||
|
||||
# bind's pidfile has changed on squeeze
|
||||
if has("squeeze"):
|
||||
service("bind",
|
||||
init="bind9",
|
||||
pidf="named/named")
|
||||
else:
|
||||
service("bind",
|
||||
init="bind9",
|
||||
pidf="bind/run/named")
|
||||
service("bind",
|
||||
init="bind9",
|
||||
pidf="named/named")
|
||||
|
||||
service("cups",
|
||||
pidf="cups/cupsd")
|
||||
|
@ -216,6 +211,12 @@ if hostname in ['routeur']:
|
|||
@ stop program = "/etc/init.d/gunicorn stop"
|
||||
@ if 5 restarts within 5 cycles then timeout
|
||||
@
|
||||
@# igmpproxy
|
||||
@check process igmpproxy with pidfile /var/run/igmpproxy.pid
|
||||
@ start program = "/etc/init.d/igmpproxy start"
|
||||
@ stop program = "/etc/init.d/igmpproxy stop"
|
||||
@ if 5 restarts within 5 cycles then timeout
|
||||
@
|
||||
if hostname in ['routeur', 'komaz']:
|
||||
@# nginx
|
||||
@check process nginx with pidfile /var/run/nginx.pid
|
||||
|
@ -265,7 +266,7 @@ for line in metadata.Probes["fstab_local"].splitlines():
|
|||
comment("partition %s" % mntpoint)
|
||||
|
||||
# on vérifie le filesystem directement pour les volumes lvm
|
||||
if fs.startswith('/dev/mapper') and has("squeeze"):
|
||||
if fs.startswith('/dev/mapper'):
|
||||
print 'check filesystem fs%s with path %s' % (mntpoint, mntpoint)
|
||||
else:
|
||||
print 'check device fs%s with path %s' % (mntpoint, fs)
|
||||
|
|
|
@ -166,8 +166,6 @@ def pub6(interface, mode = 'serveur'):
|
|||
print """iface %(interface)s inet6 static
|
||||
address %(ip6)s
|
||||
netmask 64""" % { 'interface': interface, 'ip6': pubip6(interface) }
|
||||
if not has("squeeze"):
|
||||
print ' pre-up /sbin/modprobe ipv6'
|
||||
if mode == 'serveur':
|
||||
print ' gateway fe80::219:bbff:fe31:3b80'
|
||||
elif mode == 'routeur':
|
||||
|
@ -178,8 +176,6 @@ def adm6(interface):
|
|||
print """iface %(interface)s inet6 static
|
||||
address %(ip6)s
|
||||
netmask 64""" % { 'interface': interface, 'ip6': admip6(interface) }
|
||||
if not has("squeeze"):
|
||||
print ' pre-up /sbin/modprobe ipv6'
|
||||
print
|
||||
|
||||
Probe_Mac = metadata.Probes["mac"].split('\n')
|
||||
|
|
|
@ -192,10 +192,7 @@ if not mx:
|
|||
@# TLS pour la reception
|
||||
smtpd_tls_cert_file = "/etc/ssl/certs/smtp.pem"
|
||||
smtpd_tls_key_file = "/etc/ssl/private/smtp.pem"
|
||||
if not has("squeeze"):
|
||||
smtpd_tls_CAfile = "/etc/ssl/certs/root.pem"
|
||||
else:
|
||||
smtpd_tls_CAfile = "/etc/ssl/certs/cacert.org.pem"
|
||||
smtpd_tls_CAfile = "/etc/ssl/certs/cacert.org.pem"
|
||||
smtpd_tls_loglevel = 0
|
||||
smtpd_use_tls = True
|
||||
smtpd_tls_received_header = True
|
||||
|
@ -203,10 +200,7 @@ smtpd_tls_received_header = True
|
|||
@# On utilise aussi TLS pour envoyer les mails
|
||||
smtp_tls_cert_file = ""
|
||||
smtp_tls_key_file = ""
|
||||
if not has("squeeze"):
|
||||
smtp_tls_CAfile = "/etc/ssl/certs/root.pem"
|
||||
else:
|
||||
smtp_tls_CAfile = "/etc/ssl/certs/cacert.org.pem"
|
||||
smtp_tls_CAfile = "/etc/ssl/certs/cacert.org.pem"
|
||||
smtp_tls_loglevel = 1
|
||||
smtp_use_tls = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue