openstack-ansible/playbooks/openstack-hosts-setup.yml
Logan V 8ededdd280 Separate host group var in hosts plays
The old host group used in lxc_hosts and openstack_hosts was identical
in both plays. In some (if not many) environments, there is a
difference as some openstack_hosts do not have lxc containers.

In some situations such as diskless hypervisors, deploying the
lxc_hosts role to these nodes that do not use containers causes
unnecessary ramdisk clutter.

This minor change just separates the two variable references in these
plays so the operator can set for example:

lxc_host_group: "hosts:!compute_hosts"

Then my openstack_hosts play will still run on compute hosts as
expected.

Change-Id: Ib2b157b0e139f30792558535657d5d279c6a5fcc
2016-01-18 10:09:17 -06:00

22 lines
785 B
YAML

---
# 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.
- name: Basic host setup
hosts: "{{ openstack_host_group|default('hosts') }}"
max_fail_percentage: 20
user: root
roles:
- { role: "openstack_hosts", tags: [ "openstack-hosts-setup" ] }