Handle duplicate/invalid entries in migration SSH inbound addresses
authorOliver Walsh <owalsh@redhat.com>
Fri, 5 May 2017 00:30:21 +0000 (01:30 +0100)
committerOliver Walsh <owalsh@redhat.com>
Fri, 5 May 2017 11:40:59 +0000 (12:40 +0100)
commit05e696c62d02ef64180d611413ae10f0418c002a
tree8e2154ceb4033d0f6c59586d526246880ad75e58
parentfe8edab1f4c761dcd6bad8eb6ccadd62627b077a
Handle duplicate/invalid entries in migration SSH inbound addresses

An error (e.g a typo) in a custom tripleo-heat-templates environment
file could lead to an invalid match block in /etc/ssh/sshd_config.
SSH fails-safe and refuses all logins in this case.

This change validates the migration_ssh_localaddrs parameter is an
array of IP addresses and removes and duplicate entries.

Change-Id: Ibcf144d960fe52f0eab0d5015bd30cf7c1e37e25
Closes-Bug: #1688308
manifests/profile/base/nova.pp
spec/classes/tripleo_profile_base_nova_spec.rb