[cron.d/sshFingerprint,Bundler/python-netifaces.xml,Bundler/sshfingerprint.xml] On met à jours de façon régulière les clef ssh des serveurs dans ldap

Ignore-this: a383f7b09f318673351e9ae52ddec486

darcs-hash:20130118004844-3a55a-e050da6dff485bfdf8f42d4669b0d5ecde02fa84.gz
This commit is contained in:
Valentin Samir 2013-01-18 01:48:44 +01:00
parent bc53c4c6d1
commit 7768edde62
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<Bundle name="python-netifaces" version="2.0">
<Package name="python-netifaces"/>
</Bundle>

View file

@ -0,0 +1,3 @@
<Bundle name="sshfingerprint">
<Python name="/etc/cron.d/sshFingerprint"/>
</Bundle>

View file

@ -0,0 +1,15 @@
# -*- encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["perms"] = 0644
include("ip")
@# Fichier gere par BCfg2 (plugin Python)
@#
@# A ne modifier que sur bcfg2
@# On vérifie si les clef ssh de la machine ont changés. Si oui, on les mets à jours dans ldap
min=int(admip().split('.')[3])%60
print "%s 2 * * * /usr/scripts/gestion/gen_confs/populate_sshFingerprint.py" % min