Compare commits
2 Commits
1138313abc
...
000110b4bf
| Author | SHA1 | Date | |
|---|---|---|---|
| 000110b4bf | |||
| 76e9cbdf01 |
@@ -1175,7 +1175,7 @@
|
|||||||
ptsd_migrate_report: "{{ (ptsd_migrate_report | default('')) ~ (', ' if (ptsd_migrate_report | default('')) != '' else '') ~ ('cleanup done') }}"
|
ptsd_migrate_report: "{{ (ptsd_migrate_report | default('')) ~ (', ' if (ptsd_migrate_report | default('')) != '' else '') ~ ('cleanup done') }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: PHASE X | Wait 45 seconds after config activation
|
- name: PHASE X | Wait 30 seconds after config activation
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars:
|
vars:
|
||||||
@@ -1188,12 +1188,12 @@
|
|||||||
control_queue: "{{ lookup('env','CONTROL_QUEUE') | default('queue_controls', true) }}"
|
control_queue: "{{ lookup('env','CONTROL_QUEUE') | default('queue_controls', true) }}"
|
||||||
tasks:
|
tasks:
|
||||||
- ansible.builtin.pause:
|
- ansible.builtin.pause:
|
||||||
seconds: 45
|
seconds: 30
|
||||||
|
|
||||||
- name: Report record post activation wait
|
- name: Report record post activation wait
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ptsd_migrate_report: "{{ (ptsd_migrate_report | default('')) ~ (', ' if (ptsd_migrate_report | default('')) != '' else '') ~ ('wait 45s') }}"
|
ptsd_migrate_report: "{{ (ptsd_migrate_report | default('')) ~ (', ' if (ptsd_migrate_report | default('')) != '' else '') ~ ('wait 30s') }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Final migrate cumulative report
|
- name: Final migrate cumulative report
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ from urllib3.util.retry import Retry
|
|||||||
NB_URL = "http://netbox.gt-tiso.ikeja.co.za"
|
NB_URL = "http://netbox.gt-tiso.ikeja.co.za"
|
||||||
NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623"
|
NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623"
|
||||||
CLOUD_API_BASE = "https://cloud.ikeja.co.za/v1/devices"
|
CLOUD_API_BASE = "https://cloud.ikeja.co.za/v1/devices"
|
||||||
CLOUD_BEARER = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InBhdmVsLmxAOGRldmljZXMuY29tIiwic3ViIjoyMiwiaWF0IjoxNzY2OTk3ODQ2LCJleHAiOjE3Njk1ODk4NDZ9.aBuEOQOC6i5jX6Ixwb3gabzV4uIeYJdbpJodxQy1DkE"
|
CLOUD_BEARER = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InBhdmVsLmxAOGRldmljZXMuY29tIiwic3ViIjoyMiwiaWF0IjoxNzY5MDA5NDU0LCJleHAiOjE3NzE2MDE0NTR9.2oovrovOmWq_Ht2s7F2ldXm-vZcxAkqWg6Mra9LUadE"
|
||||||
|
|
||||||
REQ_TIMEOUT = 30
|
REQ_TIMEOUT = 30
|
||||||
CHATTY = False
|
CHATTY = False
|
||||||
|
|||||||
Reference in New Issue
Block a user