
The newer version sets the connection.autoconnect-slaves=1 config option[1]. This will ensure that slave interfaces will also reconnect after bouncing the parent. [1] https://github.com/michaelrigart/ansible-role-interfaces/releases/tag/v1.15.1 Closes-Bug: #2072340 Change-Id: I2d7a8f1368d4f0e02d199029c15c453a56582b41
22 lines
370 B
Bash
Executable File
22 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# Bounces a given interface on hosts matching the supplied limit.
|
|
# Positional arguments:
|
|
# arg0: Ansible limit
|
|
# arg1: Interface to bounce
|
|
|
|
PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
source "${PARENT}/functions"
|
|
|
|
|
|
function main {
|
|
config_init
|
|
overcloud_test_bounce_interface controllers "${@}"
|
|
}
|
|
|
|
main "${@:1}"
|