retire les switchs if has('wheezy')

This commit is contained in:
Daniel STAN 2015-05-02 12:46:41 +02:00
parent fd785612d9
commit efa75412b2
11 changed files with 14 additions and 34 deletions

View file

@ -1,6 +1,4 @@
<Bundle name="rpc"> <Bundle name="rpc">
<Group name="wheezy">
<Package name="rpcbind"/> <Package name="rpcbind"/>
<Service name="rpcbind"/> <Service name="rpcbind"/>
</Group>
</Bundle> </Bundle>

View file

@ -108,7 +108,6 @@
<Group name="kdell" profile="true"> <Group name="kdell" profile="true">
<Group name="firmware-bnx2"/> <Group name="firmware-bnx2"/>
<Group name="crans-proxmox-wheezy"/> <Group name="crans-proxmox-wheezy"/>
<Group name="iscsi"/>
</Group> </Group>
<Group name="ft" profile="true"> <Group name="ft" profile="true">
@ -570,6 +569,10 @@
</Group> </Group>
<Group name="crans-proxmox-wheezy" public="true"> <Group name="crans-proxmox-wheezy" public="true">
<Group name="crans-proxmox"/>
</Group>
<Group name="crans-proxmox" public="true">
<!-- Groupe pour les hôtes proxmox --> <!-- Groupe pour les hôtes proxmox -->
<Group name="crans-wheezy"/> <Group name="crans-wheezy"/>
<Group name="iscsi"/> <Group name="iscsi"/>

View file

@ -15,8 +15,7 @@ MAILTO=root
""" """
if has("wheezy"): print """# J'ai trouve ce workaround sur :
print """# J'ai trouve ce workaround sur :
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687912 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687912
# le bugreport pretend que la derniere version de munin fix le probleme, mais non # le bugreport pretend que la derniere version de munin fix le probleme, mais non
# -- # --

View file

@ -7,7 +7,6 @@ info["perms"] = 0644
header('Demarrage de monit') header('Demarrage de monit')
# Pour wheezy et au-delà
print """ print """
# On lance monit automatiquement # On lance monit automatiquement

View file

@ -20,7 +20,7 @@ if(has("odlyd")):
print "138.231.136.9 sable.crans.org sable" print "138.231.136.9 sable.crans.org sable"
print "138.231.136.98 charybde.crans.org charybde" print "138.231.136.98 charybde.crans.org charybde"
if(has("dom0")): if(has("iscsi")):
print "10.231.136.36 nols.adm.crans.org nols.adm nols" print "10.231.136.36 nols.adm.crans.org nols.adm nols"
@# The following lines are desirable for IPv6 capable hosts @# The following lines are desirable for IPv6 capable hosts

View file

@ -3,8 +3,8 @@
import sys import sys
include("ip") include("ip")
if '/usr/scripts/' not in sys.path: if '/usr/scripts' not in sys.path:
sys.path.append('/usr/scripts/') sys.path.append('/usr/scripts')
from gestion import config from gestion import config
info["owner"] = "root" info["owner"] = "root"

View file

@ -19,11 +19,7 @@ pam-auth-update(8) for details.
""") """)
if not has('wheezy'): if True: # TODO retirer les @
print "account sufficient %s" %pam_module
print "account required pam_unix.so use_first_pass"
else:
@# here are the per-package modules (the "Primary" block) @# here are the per-package modules (the "Primary" block)
@account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so use_first_pass @account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so use_first_pass
@# here's the fallback if no module succeeds @# here's the fallback if no module succeeds

View file

@ -18,11 +18,7 @@ pam-auth-update to manage selection of other modules. See
pam-auth-update(8) for details. pam-auth-update(8) for details.
""") """)
if not has('wheezy'): if True: # TODO get rid of @
print "auth sufficient %s" % pam_module
print "auth required pam_unix.so nullok_secure use_first_pass"
else:
@# here are the per-package modules (the "Primary" block) @# here are the per-package modules (the "Primary" block)
if has('ldap'): if has('ldap'):
print "auth [success=2 default=ignore] pam_unix.so nullok_secure" print "auth [success=2 default=ignore] pam_unix.so nullok_secure"

View file

@ -17,12 +17,7 @@ pam-auth-update to manage selection of other modules. See
pam-auth-update(8) for details. pam-auth-update(8) for details.
""") """)
if not has('wheezy'): if True: # TODO get rid of @
print "session sufficient %s" % pam_module
print "session required pam_unix.so"
print "session required pam_mkhomedir.so"
else:
@# here are the per-package modules (the "Primary" block) @# here are the per-package modules (the "Primary" block)
@session [default=1] pam_permit.so @session [default=1] pam_permit.so
@# here's the fallback if no module succeeds @# here's the fallback if no module succeeds

View file

@ -1,10 +1,4 @@
<!-- Règles pour rpc //--> <!-- Règles pour rpc //-->
<Rules priority="1"> <Rules priority="1">
<Group name="squeeze"> <Service type="deb" name="rpcbind" status="on"/>
<Service type="deb" name="portmap" status="on"/>
</Group>
<Group name="wheezy">
<Service type="deb" name="rpcbind" status="on"/>
</Group>
</Rules> </Rules>

View file

@ -3,8 +3,8 @@
# Connexion à la base ldap (pour requêtes diverses) # Connexion à la base ldap (pour requêtes diverses)
import sys import sys
sys.path.append('/usr/scripts/') if '/usr/scripts' not in sys.path:
sys.path.append('/usr/scripts')
import lc_ldap.shortcuts import lc_ldap.shortcuts
sys.path.pop()
ldap_conn=lc_ldap.shortcuts.lc_ldap_readonly(user="bcfg2") ldap_conn=lc_ldap.shortcuts.lc_ldap_readonly(user="bcfg2")