Browse Source

Merge "Add cli-overcloud-node-network-config"

changes/60/772360/10
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
9aa2d6c726
1 changed files with 43 additions and 0 deletions
  1. +43
    -0
      tripleo_ansible/playbooks/cli-overcloud-node-network-config.yaml

+ 43
- 0
tripleo_ansible/playbooks/cli-overcloud-node-network-config.yaml View File

@ -0,0 +1,43 @@
---
# Copyright 2021 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
- name: Overcloud Node Network Config
hosts: allovercloud
any_errors_fatal: true
pre_tasks:
- name: Wait for provisioned nodes to boot
wait_for:
timeout: 600
port: 22
host: '{{ ansible_host }}'
search_regex: OpenSSH
delay: 10
msg: Timeout waiting for provisioned nodes to become available
connection: local
roles:
- role: tripleo_network_config
vars:
# The conditions in tripleo_network_config role for when we want to
# apply the NetworkConfig are:
# 1. If the stack_action is CREATE
# 2. Or UPDATE is in the network_deployment_actions
# 3. Or the previous run of NetworkConfig failed.
# 4. Or it has never run
#
# Since we don't have stack_action in this case. Set the network
# config action to UPDATE here so that we only apply network
# configuration if 2, 3 or 4 evalueates to TRUE.
tripleo_network_config_action: UPDATE

Loading…
Cancel
Save