Do not log passwords
This prevents data to be leaked into the callback plugin. Some style changes are included to make it easier to read, the copyright notice is added as it should have been from the start, and a duplicate retry argument is removed. Change-Id: I11c3da84fa6469764a19b6a387ef312124dfba2a
This commit is contained in:
parent
97a448da3e
commit
130e8da005
@ -28,6 +28,7 @@
|
|||||||
delay: 10
|
delay: 10
|
||||||
when:
|
when:
|
||||||
- swift_gnocchi_enabled | bool
|
- swift_gnocchi_enabled | bool
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: Store Gnocchi project id
|
- name: Store Gnocchi project id
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
no_log: True
|
||||||
|
|
||||||
# Create an admin user
|
# Create an admin user
|
||||||
- name: Ensure swift user
|
- name: Ensure swift user
|
||||||
@ -47,6 +48,7 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
# Add a role to the user
|
# Add a role to the user
|
||||||
- name: Ensure swift user to admin role
|
- name: Ensure swift user to admin role
|
||||||
@ -65,6 +67,7 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: Ensure swiftoperator role
|
- name: Ensure swiftoperator role
|
||||||
keystone:
|
keystone:
|
||||||
@ -79,6 +82,7 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: "Create keystone user for swift-dispersion"
|
- name: "Create keystone user for swift-dispersion"
|
||||||
keystone:
|
keystone:
|
||||||
@ -96,6 +100,7 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: "Create keystone role for ResellerAdmin"
|
- name: "Create keystone role for ResellerAdmin"
|
||||||
keystone:
|
keystone:
|
||||||
@ -110,6 +115,7 @@
|
|||||||
until: add_role|success
|
until: add_role|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: "Add ResellerAdmin role to the service tenant and ceilometer user"
|
- name: "Add ResellerAdmin role to the service tenant and ceilometer user"
|
||||||
keystone:
|
keystone:
|
||||||
@ -127,6 +133,7 @@
|
|||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
when: swift_ceilometer_enabled | bool
|
when: swift_ceilometer_enabled | bool
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: "Add swiftoperator role to swift-dispersion user"
|
- name: "Add swiftoperator role to swift-dispersion user"
|
||||||
keystone:
|
keystone:
|
||||||
@ -143,6 +150,7 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
# Create an endpoint
|
# Create an endpoint
|
||||||
- name: Ensure swift endpoint
|
- name: Ensure swift endpoint
|
||||||
@ -167,3 +175,4 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
@ -1,8 +1,24 @@
|
|||||||
---
|
---
|
||||||
|
# Copyright 2016, Rackspace US, Inc.
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
- name: Setup testing - run Swift functional tests
|
- name: Setup testing - run Swift functional tests
|
||||||
hosts: swift_proxy[0]
|
hosts: swift_proxy[0]
|
||||||
user: root
|
user: root
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
vars_files:
|
||||||
|
- common/test-vars.yml
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Ensure test projects
|
- name: Ensure test projects
|
||||||
keystone:
|
keystone:
|
||||||
@ -26,6 +42,8 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: Ensure required roles
|
- name: Ensure required roles
|
||||||
keystone:
|
keystone:
|
||||||
command: "ensure_role"
|
command: "ensure_role"
|
||||||
@ -44,6 +62,8 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: Add swift users for testing
|
- name: Add swift users for testing
|
||||||
keystone:
|
keystone:
|
||||||
command: "ensure_user"
|
command: "ensure_user"
|
||||||
@ -68,6 +88,8 @@
|
|||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: Ensure roles for swift test users
|
- name: Ensure roles for swift test users
|
||||||
keystone:
|
keystone:
|
||||||
command: "ensure_user_role"
|
command: "ensure_user_role"
|
||||||
@ -87,12 +109,13 @@
|
|||||||
- { user_name: "test5", project_name: "test5", role_name: "test5", domain_name: "Default" }
|
- { user_name: "test5", project_name: "test5", role_name: "test5", domain_name: "Default" }
|
||||||
- { user_name: "test6", project_name: "test6", role_name: "ResellerAdmin", domain_name: "Default" }
|
- { user_name: "test6", project_name: "test6", role_name: "ResellerAdmin", domain_name: "Default" }
|
||||||
when: groups['keystone_all'] is defined
|
when: groups['keystone_all'] is defined
|
||||||
retries: 5
|
|
||||||
run_once: true
|
run_once: true
|
||||||
register: add_service
|
register: add_service
|
||||||
until: add_service|success
|
until: add_service|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
no_log: True
|
||||||
|
|
||||||
- name: Clone swift repository on proxy-host
|
- name: Clone swift repository on proxy-host
|
||||||
git:
|
git:
|
||||||
repo: "https://git.openstack.org/openstack/swift"
|
repo: "https://git.openstack.org/openstack/swift"
|
||||||
@ -100,6 +123,7 @@
|
|||||||
update: yes
|
update: yes
|
||||||
clone: yes
|
clone: yes
|
||||||
version: "{{ swift_git_install_branch }}"
|
version: "{{ swift_git_install_branch }}"
|
||||||
|
|
||||||
- name: Install requirements for swift
|
- name: Install requirements for swift
|
||||||
pip:
|
pip:
|
||||||
requirements: "{{ item }}"
|
requirements: "{{ item }}"
|
||||||
@ -110,6 +134,7 @@
|
|||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
with_items:
|
with_items:
|
||||||
- "/opt/swift/test-requirements.txt"
|
- "/opt/swift/test-requirements.txt"
|
||||||
|
|
||||||
- name: Setup test.conf for testing
|
- name: Setup test.conf for testing
|
||||||
template:
|
template:
|
||||||
src: "swift_test.conf.j2"
|
src: "swift_test.conf.j2"
|
||||||
@ -120,10 +145,12 @@
|
|||||||
command: dd if=/dev/zero of=/swift_swap bs=1M count=1024
|
command: dd if=/dev/zero of=/swift_swap bs=1M count=1024
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['swift_hosts']
|
- inventory_hostname in groups['swift_hosts']
|
||||||
|
|
||||||
- name: Make swap for swift-storage hosts
|
- name: Make swap for swift-storage hosts
|
||||||
command: mkswap /swift_swap
|
command: mkswap /swift_swap
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['swift_hosts']
|
- inventory_hostname in groups['swift_hosts']
|
||||||
|
|
||||||
- name: Add swap to fstab for swift-storage hosts
|
- name: Add swap to fstab for swift-storage hosts
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/fstab
|
dest: /etc/fstab
|
||||||
@ -132,10 +159,12 @@
|
|||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['swift_hosts']
|
- inventory_hostname in groups['swift_hosts']
|
||||||
|
|
||||||
- name: Turn swap on for swift-storage hosts
|
- name: Turn swap on for swift-storage hosts
|
||||||
command: swapon -a
|
command: swapon -a
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups['swift_hosts']
|
- inventory_hostname in groups['swift_hosts']
|
||||||
|
|
||||||
- name: Run functional tests for swift
|
- name: Run functional tests for swift
|
||||||
shell: "source /openstack/venvs/swift-untagged/bin/activate && ./.functests"
|
shell: "source /openstack/venvs/swift-untagged/bin/activate && ./.functests"
|
||||||
args:
|
args:
|
||||||
@ -143,5 +172,3 @@
|
|||||||
executable: "/bin/bash"
|
executable: "/bin/bash"
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
vars_files:
|
|
||||||
- common/test-vars.yml
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user