From 7768edde624b96a3c5c8a136b649bb4cd2544af4 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 18 Jan 2013 01:48:44 +0100 Subject: [PATCH] =?UTF-8?q?[cron.d/sshFingerprint,Bundler/python-netifaces?= =?UTF-8?q?.xml,Bundler/sshfingerprint.xml]=20On=20met=20=C3=A0=20jours=20?= =?UTF-8?q?de=20fa=C3=A7on=20r=C3=A9guli=C3=A8re=20les=20clef=20ssh=20des?= =?UTF-8?q?=20serveurs=20dans=20ldap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: a383f7b09f318673351e9ae52ddec486 darcs-hash:20130118004844-3a55a-e050da6dff485bfdf8f42d4669b0d5ecde02fa84.gz --- Bundler/python-netifaces.xml | 3 +++ Bundler/sshfingerprint.xml | 3 +++ Python/etc/cron.d/sshFingerprint | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 Bundler/python-netifaces.xml create mode 100644 Bundler/sshfingerprint.xml create mode 100644 Python/etc/cron.d/sshFingerprint diff --git a/Bundler/python-netifaces.xml b/Bundler/python-netifaces.xml new file mode 100644 index 0000000..e9e1c04 --- /dev/null +++ b/Bundler/python-netifaces.xml @@ -0,0 +1,3 @@ + + + diff --git a/Bundler/sshfingerprint.xml b/Bundler/sshfingerprint.xml new file mode 100644 index 0000000..0f4cd87 --- /dev/null +++ b/Bundler/sshfingerprint.xml @@ -0,0 +1,3 @@ + + + diff --git a/Python/etc/cron.d/sshFingerprint b/Python/etc/cron.d/sshFingerprint new file mode 100644 index 0000000..58f7a5f --- /dev/null +++ b/Python/etc/cron.d/sshFingerprint @@ -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