From 689767c14e1fd266f3edbecf805bb896c44950a4 Mon Sep 17 00:00:00 2001 From: Alex Krzos Date: Sat, 4 Nov 2023 15:59:00 -0400 Subject: [PATCH] Add AAP overrides --- .../roles/bm-post-cluster-install/defaults/main/main.yml | 5 +++++ .../templates/ansible-automation-platform-operator.yml.j2 | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ansible/roles/bm-post-cluster-install/defaults/main/main.yml b/ansible/roles/bm-post-cluster-install/defaults/main/main.yml index f48ebadd..1f02cf12 100644 --- a/ansible/roles/bm-post-cluster-install/defaults/main/main.yml +++ b/ansible/roles/bm-post-cluster-install/defaults/main/main.yml @@ -19,6 +19,11 @@ setup_performance_dashboards: false # Deploy ansible-automation-platform operator setup_ansible_automation_platform: false aap_channel: stable-2.4-cluster-scoped +aap_enable_overrides: false +# MAX_CONCURRENT_RECONCILES_ANSIBLEJOB_TOWER_ANSIBLE_COM +aap_override_max_concurrent_ajt: 10 +# MAX_CONCURRENT_RECONCILES_ANSIBLEWORKFLOW_TOWER_ANSIBLE_COM +aap_override_max_concurrent_awt: 10 # Deploy openshift-gitops-operator setup_openshift_gitops: false diff --git a/ansible/roles/bm-post-cluster-install/templates/ansible-automation-platform-operator.yml.j2 b/ansible/roles/bm-post-cluster-install/templates/ansible-automation-platform-operator.yml.j2 index fa52f1ef..e2bd73c7 100644 --- a/ansible/roles/bm-post-cluster-install/templates/ansible-automation-platform-operator.yml.j2 +++ b/ansible/roles/bm-post-cluster-install/templates/ansible-automation-platform-operator.yml.j2 @@ -27,3 +27,11 @@ spec: source: redhat-operators {% endif %} sourceNamespace: openshift-marketplace +{% if aap_enable_overrides %} + config: + env: + - name: MAX_CONCURRENT_RECONCILES_ANSIBLEJOB_TOWER_ANSIBLE_COM + value: "{{ aap_override_max_concurrent_ajt }}" + - name: MAX_CONCURRENT_RECONCILES_ANSIBLEWORKFLOW_TOWER_ANSIBLE_COM + value: "{{ aap_override_max_concurrent_awt }}" +{% endif %}