Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lifecycle: build inventory and wait for instances #6113

Draft
wants to merge 3 commits into
base: development
Choose a base branch
from

Commits on Mar 17, 2023

  1. lifecycle: build inventory and wait for instances

    In case there is a lifecycle hook detected in the config:
    
    - Build the inventory using the default roles
    - Set the ansible_ssh_extra_args for connection
    - wait for hosts using the generic role
    - load vars into all hosts using `include_vars.yml`
    
    This will simplify config lifecycle hooks.
    
    This changes also patch all the lifecycle hooks across agnosticd:
    
    * modified:   ansible/configs/ocp4-cluster/lifecycle_hook_post_start.yml
    * modified:   ansible/configs/ocs4-external-implementation/lifecycle_hook_post_start.yml
    * modified:   ansible/configs/sap-integration/lifecycle_hook_post_start.yml
    fridim committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    88325e5 View commit details
    Browse the repository at this point in the history
  2. Add comment for noop.yml

    fridim committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    6e879dc View commit details
    Browse the repository at this point in the history
  3. Include vars to all host before waiting

    Instead of Waiting for instances to be up and then do something,
    Do something while the instances are starting.
    fridim committed Mar 17, 2023
    Configuration menu
    Copy the full SHA
    426229d View commit details
    Browse the repository at this point in the history