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