X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-registry.git;a=blobdiff_plain;f=ansible%2Froles%2Fswift%2Ftasks%2Fpassword_gen.yml;fp=ansible%2Froles%2Fswift%2Ftasks%2Fpassword_gen.yml;h=0000000000000000000000000000000000000000;hp=eaee0569a854272f79c24c1e56cd102cbbe95ad7;hb=e7699d4abe5bbbf605b5e7278bef0e76e8ebe05f;hpb=5d6a4fd8f953fcfa04cb249800f5c324128b7e64 diff --git a/ansible/roles/swift/tasks/password_gen.yml b/ansible/roles/swift/tasks/password_gen.yml deleted file mode 100644 index eaee056..0000000 --- a/ansible/roles/swift/tasks/password_gen.yml +++ /dev/null @@ -1,27 +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. - -- shell: openssl rand -hex 10 | /usr/bin/openssl enc -aes-256-cbc -a -pass pass:{{ name }} - register: password - -- name: insert passwords into etcd - command: '/usr/bin/curl -X PUT - https://{{ ansible_host }}:{{ caas.etcd_api_port }}/v2/keys/swift/{{ item }}?prevExist=false - --cacert /etc/etcd/ssl/ca.pem - --cert /etc/etcd/ssl/etcd{{ nodeindex }}.pem - --key /etc/etcd/ssl/etcd{{ nodeindex }}-key.pem - --data-urlencode value="{{ password.stdout }}"' - become_user: "root" -