Standardize test vars
Move test host vars from the inventory to individual files for each host. 'ansible_become' has been removed from localhost's vars since it should be handled on a playbook basis. Change-Id: I52645d09e83818416d6cd8a8ae4ec4e58848efd3
This commit is contained in:
parent
f0be46f27a
commit
4dc9dc23cf
18
tests/host_vars/infra1.yml
Normal file
18
tests/host_vars/infra1.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
ansible_host: 10.1.0.2
|
||||||
|
ansible_become: True
|
||||||
|
ansible_user: root
|
18
tests/host_vars/keystone1.yml
Normal file
18
tests/host_vars/keystone1.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
ansible_host: 10.1.0.3
|
||||||
|
ansible_become: True
|
||||||
|
ansible_user: root
|
18
tests/host_vars/keystone2.yml
Normal file
18
tests/host_vars/keystone2.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
ansible_host: 10.1.0.4
|
||||||
|
ansible_become: True
|
||||||
|
ansible_user: root
|
@ -1,8 +1,8 @@
|
|||||||
[all]
|
[all]
|
||||||
localhost ansible_become=True
|
localhost
|
||||||
infra1 ansible_host=10.1.0.2 ansible_become=True ansible_user=root
|
infra1
|
||||||
keystone1 ansible_host=10.1.0.3 ansible_become=True ansible_user=root
|
keystone1
|
||||||
keystone2 ansible_host=10.1.0.4 ansible_become=True ansible_user=root
|
keystone2
|
||||||
|
|
||||||
[all_containers]
|
[all_containers]
|
||||||
infra1
|
infra1
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
- name: Playbook for deploying upgrade benchmarking
|
- name: Playbook for deploying upgrade benchmarking
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
user: root
|
user: root
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Kill upgrade benchmarking process
|
- name: Kill upgrade benchmarking process
|
||||||
command: pkill locust
|
command: pkill locust
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
- name: Playbook for deploying upgrade benchmarking
|
- name: Playbook for deploying upgrade benchmarking
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
user: root
|
user: root
|
||||||
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install locust
|
- name: Install locust
|
||||||
pip:
|
pip:
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
- name: Clone keystone repository if it doesn't exist
|
- name: Clone keystone repository if it doesn't exist
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
user: root
|
user: root
|
||||||
|
become: true
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Clone the repo
|
- name: Clone the repo
|
||||||
git:
|
git:
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
- name: Install haproxy
|
- name: Install haproxy
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: "haproxy_server"
|
- role: "haproxy_server"
|
||||||
haproxy_service_configs: "{{ haproxy_default_services }}"
|
haproxy_service_configs: "{{ haproxy_default_services }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user