[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]))
|
key_machines[key.value].add('.'.join(domains[0:2]))
|
||||||
for ip in machine['ipHostNumber']:
|
for ip in machine['ipHostNumber']:
|
||||||
key_machines[key.value].add("%s" % ip)
|
key_machines[key.value].add("%s" % ip)
|
||||||
for ip in machine['ip6HostNumber']:
|
if len(machine.get('dnsIpv6', []))<1 or machine['dnsIpv6'][0].value:
|
||||||
key_machines[key.value].add("%s" % ip)
|
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
|
# On trie pour avoir des diff valident en appliquant bcfg2 sur les machines
|
||||||
output=[]
|
output=[]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue