This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 4cbdba8  Updates for cdn/{{name}}/snapshot endpoint in ansible roles 
(#5596)
4cbdba8 is described below

commit 4cbdba8022e9ee1b8053eaee851267597e192b5e
Author: Ashish P <[email protected]>
AuthorDate: Tue Mar 2 11:23:07 2021 -0700

    Updates for cdn/{{name}}/snapshot endpoint in ansible roles (#5596)
    
    * Updating perl API endpoint to go endpoint
    
    * Syntax fix for indentation
    
    * updating endpoints for snapshots
    
    Co-authored-by: apaudy028 <[email protected]>
---
 infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml | 2 +-
 infrastructure/ansible/roles/to_api/tasks/snapshot.yml               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml 
b/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml
index 851c441..b24090e 100644
--- a/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml
+++ b/infrastructure/ansible/roles/dataset_loader/tasks/dataset_loader.yml
@@ -949,7 +949,7 @@
 
 - name: Snapshot all CDNs
   uri:
-    url: "{{ dl_to_url }}/api/{{ dl_to_api_version }}/tools/write_crconfig/{{ 
item.name }}"
+    url: "{{ dl_to_url }}/api/{{ dl_to_api_version }}/cdns/{{ item.name 
}}/snapshot"
     method: GET
   with_items: "{{ get_all_cdns.json.response[1:] }}"
   register: snapshot_out
diff --git a/infrastructure/ansible/roles/to_api/tasks/snapshot.yml 
b/infrastructure/ansible/roles/to_api/tasks/snapshot.yml
index 7b8548f..73f21dc 100644
--- a/infrastructure/ansible/roles/to_api/tasks/snapshot.yml
+++ b/infrastructure/ansible/roles/to_api/tasks/snapshot.yml
@@ -117,7 +117,7 @@
 - name: "Writing snapshot ({{ to_api_target_cdn }})"
   delegate_to: localhost
   uri:
-    url: "{{ to_api_base_url }}/tools/write_crconfig/{{ to_api_target_cdn }}"
+    url: "{{ to_api_base_url }}/cdns/{{ to_api_target_cdn }}/snapshot"
     method: GET
     follow_redirects: all
     return_content: yes

Reply via email to