Move swift authentication data to cm 25/1225/1
authorbborbely <botond.borbely@nokia.com>
Fri, 19 Jul 2019 11:44:54 +0000 (13:44 +0200)
committerbborbely <botond.borbely@nokia.com>
Fri, 19 Jul 2019 11:54:33 +0000 (13:54 +0200)
Signed-off-by: bborbely <botond.borbely@nokia.com>
Change-Id: Iff79fe1ca00a5a1699c1b8e56295b12bd69bebc6

deploy/group_vars/controller-1.caas_master/params.yml
deploy/roles/clean_chart/tasks/main.yml
su/roles/su_prepare/tasks/merge-charts.yml

index b9e7ced..d4d64ad 100644 (file)
@@ -19,6 +19,5 @@ use_local_versions: false
 cbam: false
 helm_install_set: ""
 
-swift_admin_path: "/etc/swift/usr/admin"
 image_versions_path: "{{ caas_manifest_path }}"
 manifest_path: "{{ use_local_manifest|bool | ternary('manifests', '/tmp') }}"
index 1b1afb7..30ff184 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-- name: fetch files from server which contains the necessary variables
-  fetch: src={{ item }} dest=/tmp/ flat=yes
-  with_items:
-    - /etc/swift/usr/admin/admin.yml
-
-- name: register infos for swift_auth
-  set_fact:
-    swift_credential: "{{ lookup('file', swift_admin_path + '/admin.yml') | from_yaml }}"
-
 - name: authenticate on swift
   uri:
     url: "{{ caas.swift }}/auth/v1.0"
     headers:
       X_Auth_User: admin:admin
-      X_Auth_Key: "{{ swift_credential.swift_password }}"
+      X_Auth_Key: "{{ caas.swift_credential.password }}"
   register: auth
 
 - name: clean charts list file if exists
index cff001a..f68aaa1 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-- name: fetch files from server which contains the necessary variables
-  fetch:
-    src: /etc/swift/usr/admin/admin.yml
-    dest: /tmp/
-    flat: yes
-
-- name: register infos for swift_auth
-  set_fact:
-    swift_credential: "{{ lookup('file', '/tmp/admin.yml') | from_yaml }}"
-
 - name: pause to wait for swift-update to be ready
   pause:
     minutes: 1
@@ -32,7 +22,7 @@
     url: "{{ caas.swift_update }}/auth/v1.0"
     headers:
       X_Auth_User: admin:admin
-      X_Auth_Key: "{{ swift_credential.swift_password }}"
+      X_Auth_Key: "{{ caas.swift_credential.password }}"
   register: auth
 
 - name: get packages
@@ -84,7 +74,7 @@
     url: "{{ caas.swift }}/auth/v1.0"
     headers:
       X_Auth_User: admin:admin
-      X_Auth_Key: "{{ swift_credential.swift_password }}"
+      X_Auth_Key: "{{ caas.swift_credential.password }}"
   register: auth_orig
   ignore_errors: yes