crans_bcfg2/Python/etc/cron.d/sshFingerprint
2015-05-14 07:19:56 +02:00

17 lines
514 B
Text

# -*- encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["mode"] = 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
out("%s 9 * * * root /usr/scripts/gestion/gen_confs/populate_sshFingerprint.py" % (min,))
@# On met à jour le known_hosts global
out("%s 10 * * * root /usr/sbin/bcfg2 -b knownhosts -q" % (min,))