[gen_confs/squid.py] On regenere les blacklistes correspondant aux nouvelles IPs
Ca evite qu'un adherent blackliste, creant une nouvelle machine ne soit pas blackliste sur squid ... darcs-hash:20100511202632-ddb99-817464ed5ad86915772768abef6e2985453bdb6e.gz
This commit is contained in:
parent
d8e9d87c34
commit
74fd959a20
2 changed files with 71 additions and 1 deletions
|
@ -39,7 +39,8 @@ make_lock('auto_generate', 'Big lock', nowait=1)
|
|||
|
||||
class base_reconfigure:
|
||||
__service_develop = {
|
||||
'macip': [ 'rouge-macip', 'zamok-macip', 'sable-macip', 'komaz-macip', 'gordon-macip' ],
|
||||
'macip': [ 'rouge-macip', 'zamok-macip', 'sable-macip', 'komaz-macip', 'gordon-macip',
|
||||
'sable-blacklist_check' ],
|
||||
# 'droits': [ 'rouge-droits', 'ragnarok-droits' ],
|
||||
'blacklist_upload': [ 'sable-blacklist_upload', 'komaz-blacklist' ],
|
||||
'blacklist_p2p': [ 'sable-blacklist_p2p', 'komaz-blacklist' ],
|
||||
|
@ -252,6 +253,10 @@ class sable(base_reconfigure):
|
|||
from gen_confs.bind import dns
|
||||
self._do(dns(), self._machines())
|
||||
|
||||
def blacklist_check(self, ips):
|
||||
from gen_confs.squid import squid_check
|
||||
self._do(squid_check(ips))
|
||||
|
||||
def bl_carte_etudiant(self):
|
||||
from gen_confs.squid import squid_carte
|
||||
self._do(squid_carte())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue