Project

General

Profile

Actions

Task #6203

closed

Do not rebuild the smartgears container.xml file from ansible if a token was not passed at playbook execution time

Added by Andrea Dell'Amico over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
System Application
Target version:
Start date:
Dec 13, 2016
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development, Pre-Production, Production

Description

@lucio.lelii@isti.cnr.it is asking to not rebuild the container.xml with the old data if a token request is not performed.

To obtain that, container.xml needs to be assembled by the get-scopes script and not by an ansible task.

Actions #1

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100

The get-scopes script now, if it's called by the playbook, asks for the scopes tokens and then builds the container.xml file assembling the three template parts.

The ansible playbook runs the get-scopes scripts if an admin token was explicitly passed in a variable to the playbook run.

So, any manual changes to the smartgears configuration will only be overwritten if a token has been passed to ansible.

Needs to be tested.

Actions #2

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from In Progress to Closed

The script as been tested successfully on ckan-d-d4s.d4science.org

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)