[ssh_known_hosts] On ne met l'ipv6 que si elle apparait dans le dns
This commit is contained in:
parent
59ca939517
commit
2670b242a3
1 changed files with 3 additions and 2 deletions
|
@ -26,8 +26,9 @@ for machine in machines:
|
|||
key_machines[key.value].add('.'.join(domains[0:2]))
|
||||
for ip in machine['ipHostNumber']:
|
||||
key_machines[key.value].add("%s" % ip)
|
||||
for ip in machine['ip6HostNumber']:
|
||||
key_machines[key.value].add("%s" % ip)
|
||||
if len(machine.get('dnsIpv6', []))<1 or machine['dnsIpv6'][0].value:
|
||||
for ip in machine['ip6HostNumber']:
|
||||
key_machines[key.value].add("%s" % ip)
|
||||
|
||||
# On trie pour avoir des diff valident en appliquant bcfg2 sur les machines
|
||||
output=[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue