From 73b47f723f5c99e065176685f9526a9a97c54362 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Wed, 19 Apr 2017 17:18:44 -0700 Subject: [PATCH] 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: Ia782c502cccc1bfbd83a40047e59271906dfbf75 --- tests/host_vars/horizon1.yml | 18 ++++++++++++++++++ tests/host_vars/infra1.yml | 18 ++++++++++++++++++ tests/host_vars/keystone1.yml | 18 ++++++++++++++++++ tests/inventory | 8 ++++---- 4 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 tests/host_vars/horizon1.yml create mode 100644 tests/host_vars/infra1.yml create mode 100644 tests/host_vars/keystone1.yml diff --git a/tests/host_vars/horizon1.yml b/tests/host_vars/horizon1.yml new file mode 100644 index 00000000..0e876f60 --- /dev/null +++ b/tests/host_vars/horizon1.yml @@ -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 diff --git a/tests/host_vars/infra1.yml b/tests/host_vars/infra1.yml new file mode 100644 index 00000000..86d45ff8 --- /dev/null +++ b/tests/host_vars/infra1.yml @@ -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 diff --git a/tests/host_vars/keystone1.yml b/tests/host_vars/keystone1.yml new file mode 100644 index 00000000..23b94986 --- /dev/null +++ b/tests/host_vars/keystone1.yml @@ -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 diff --git a/tests/inventory b/tests/inventory index 38749898..d96676fb 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,8 +1,8 @@ [all] -localhost ansible_become=True -infra1 ansible_host=10.1.0.2 ansible_become=True ansible_user=root -keystone1 ansible_host=10.1.0.3 ansible_become=True ansible_user=root -horizon1 ansible_host=10.1.0.4 ansible_become=True ansible_user=root +localhost +infra1 +keystone1 +horizon1 [all_containers] infra1