X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-registry.git;a=blobdiff_plain;f=ansible%2Froles%2Fswift%2Ftasks%2Fpassword_handler.yml;fp=ansible%2Froles%2Fswift%2Ftasks%2Fpassword_handler.yml;h=0000000000000000000000000000000000000000;hp=576ade516805d3a217137d59cb7b606f6d59508c;hb=e7699d4abe5bbbf605b5e7278bef0e76e8ebe05f;hpb=5d6a4fd8f953fcfa04cb249800f5c324128b7e64 diff --git a/ansible/roles/swift/tasks/password_handler.yml b/ansible/roles/swift/tasks/password_handler.yml deleted file mode 100644 index 576ade5..0000000 --- a/ansible/roles/swift/tasks/password_handler.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -# Copyright 2019 Nokia -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- include_tasks: password_gen.yml - with_items: - - "registry" - -- name: get registry password - command: '/usr/bin/curl - https://{{ ansible_host }}:{{ caas.etcd_api_port }}/v2/keys/swift/registry - --cacert /etc/etcd/ssl/ca.pem - --cert /etc/etcd/ssl/etcd{{ nodeindex }}.pem - --key /etc/etcd/ssl/etcd{{ nodeindex }}-key.pem' - register: registry_pass - become_user: "root" - -- name: decode registry pass - shell: echo {{ (registry_pass.stdout|from_json).node.value }} | /usr/bin/openssl enc -d -aes-256-cbc -a -pass pass:{{ name }} - register: registry_pass - -- name: set registry pass - set_fact: - swift_registry_pass: "{{ registry_pass.stdout }}"