crans_bcfg2/Python/etc/cron.d/sshFingerprint

17 lines
511 B
Text

# -*- 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 9 * * * root /usr/scripts/gestion/gen_confs/populate_sshFingerprint.py" % min
@# On met à jour le known_hosts global
print "%s 10 * * * root /usr/sbin/bcfg2 -b knownhosts -q" % min