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

Add default EE to fix wait for sync #247

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions playbooks/service-provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@
file: "{{ catalog_item_params_file }}"
name: catalog_item_params

# RHPDS virtualenvs -> EE automatic creation
- name: Override EE with default_execution_environment if not defined
vars:
ansible_control_plane: >-
{{ vars.catalog_item_params.__meta__.ansible_control_plane.type | default('tower') }}

execution_environment: >-
{{ vars.catalog_item_params.__meta__.deployer.execution_environment | default({}) }}

default_execution_environment:
image: image-registry.apps-dev.open.redhat.com/agnosticd/ee-{{ vars.catalog_item_params.__meta__.deployer.virtualenv | default('ansible2.9-python3.6-2021-11-30') }}
private: true

to_merge:
__meta__:
deployer:
execution_environment: "{{ default_execution_environment }}"
when: >-
ansible_control_plane == 'controller'
and execution_environment | default('', true) == ''

set_fact:
catalog_item_params: "{{ vars.catalog_item_params | combine(to_merge, recursive=True) }}"

- name: Show catalog_item_params
debug:
var: vars.catalog_item_params
Expand Down