---
# Copyright 2014, 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.

# Configure tempest on the utility containers

- hosts: utility_all
  roles:
    - common
    - openstack_common
    - openstack_openrc
  vars_files:
    - vars/repo_packages/tempest.yml
    - inventory/group_vars/tempest_all.yml

# Openstack resources only need to be created once
- hosts: utility_all[0]
  roles:
    - tempest_resources
  vars_files:
    - inventory/group_vars/tempest_all.yml

# Tempest is installed and configured in all utility containers
- hosts: utility_all
  vars_files:
    - vars/repo_packages/tempest.yml
  roles:
    - tempest

---
# Copyright 2014, 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.

# Configure tempest on the utility containers

- hosts: utility_all
  user: root
  roles:
    - common
    - openstack_common
    - openstack_openrc
  vars_files:
    - vars/repo_packages/tempest.yml
    - inventory/group_vars/tempest_all.yml

# Openstack resources only need to be created once
- hosts: utility_all[0]
  user: root
  roles:
    - tempest_resources
  vars_files:
    - inventory/group_vars/tempest_all.yml

# Tempest is installed and configured in all utility containers
- hosts: utility_all
  user: root
  vars_files:
    - vars/repo_packages/tempest.yml
  roles:
    - tempest

Designate root user to run the Tempest playbook.
Designate root user to run the Tempest playbook.

This allows non-root users using Ansible to reach the correct
authorized_keys file within containers.

Change-Id: I35a60b2fc937e839e7cd7fcc7da8649c4b3de440
Closes-Bug: 1418122
