Add nexus_come_up_wait_retries variable to nexus role 33/88533/4
authorMichal Zegan <m.zegan@samsung.com>
Mon, 27 May 2019 11:51:41 +0000 (13:51 +0200)
committerMichal Ptacek <m.ptacek@partner.samsung.com>
Wed, 29 May 2019 10:43:01 +0000 (10:43 +0000)
This variable is used to set the number
of retries when waiting for nexus to be running.
It may occassionally be useful to increase it on slower
test environments.

Change-Id: Id34106dd8f9a8b2b1949b80adb22fbec3df71e23
Issue-ID: OOM-1816
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
ansible/roles/nexus/defaults/main.yml
ansible/roles/nexus/tasks/install.yml

index 92089e9..8f63697 100644 (file)
@@ -1,4 +1,5 @@
 ---
+nexus_come_up_wait_retries: 30
 # By default prepopulated nexus binary blob used.
 populate_nexus: false
 # By dafault no additional docker images pushed to nexus at runtime
index f8de5e9..c88e585 100644 (file)
@@ -36,7 +36,7 @@
     password: admin123
     force_basic_auth: true
     method: GET
-  retries: 30
+  retries: "{{ nexus_come_up_wait_retries }}"
   delay: 10
   register: nexus_wait
   until: not nexus_wait.failed