Browse Source

Allow number of retries in openshift_management to be configurable

Elad Alfassa 7 years ago
parent
commit
b72517f9e8

+ 2 - 0
roles/openshift_management/defaults/main.yml

@@ -3,6 +3,8 @@
 openshift_management_project: openshift-management
 # Namespace/project description
 openshift_management_project_description: CloudForms Management Engine
+# Number of retries when waiting for the app to start (retried every 30 seconds)
+openshift_management_pod_rollout_retries: 30
 
 ######################################################################
 # BASE TEMPLATE AND DATABASE OPTIONS

+ 2 - 2
roles/openshift_management/tasks/main.yml

@@ -88,9 +88,9 @@
     create: True
     params: "{{ openshift_management_template_parameters }}"
 
-- name: Wait for the app to come up. May take several minutes, 30s check intervals, 10m max
+- name: Wait for the app to come up. May take several minutes, 30s check intervals, {{ openshift_management_pod_rollout_retries }} retries
   command: "oc logs {{ openshift_management_flavor }}-0 -n {{ openshift_management_project }}"
   register: app_seeding_logs
   until: app_seeding_logs.stdout.find('Server starting complete') != -1
   delay: 30
-  retries: 20
+  retries: "{{ openshift_management_pod_rollout_retries }}"