From 7a559b9f3b3e3301e98cef43cba584e1a4b74470 Mon Sep 17 00:00:00 2001 From: Deric Crago Date: Fri, 18 Sep 2020 11:46:43 -0400 Subject: [PATCH] added 'tower_image_pull_secret' --- roles/installer/defaults/main.yml | 1 + roles/installer/templates/tower_deployment.yaml.j2 | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/roles/installer/defaults/main.yml b/roles/installer/defaults/main.yml index f92a19e2..bfcfe5b3 100644 --- a/roles/installer/defaults/main.yml +++ b/roles/installer/defaults/main.yml @@ -57,6 +57,7 @@ tower_extra_volumes: '' tower_image: quay.io/ansible/awx:execution-environments tower_image_pull_policy: IfNotPresent +tower_image_pull_secret: '' default_ee: quay.io/ansible/awx-ee tower_create_preload_data: true diff --git a/roles/installer/templates/tower_deployment.yaml.j2 b/roles/installer/templates/tower_deployment.yaml.j2 index dffa3ea8..dccd3902 100644 --- a/roles/installer/templates/tower_deployment.yaml.j2 +++ b/roles/installer/templates/tower_deployment.yaml.j2 @@ -18,6 +18,10 @@ spec: app: '{{ deployment_type }}' spec: serviceAccountName: '{{ meta.name }}' +{% if tower_image_pull_secret %} + imagePullSecrets: + - name: {{ tower_image_pull_secret }} +{% endif %} containers: - image: '{{ tower_redis_image }}' name: redis