d651ed70f4
Optionally deploy unbound DNS caching resolvers in lieu of managing /etc/hosts across all hosts. This is an opt-in optimization providing centralized DNS resolution containers to allow intra-cluster name resolution identical to what openstack_hosts provides with its /etc/hosts management. Managing /etc/hosts is very inefficient and cumbersome in large environments with lots of hosts, so this change allows for a quicker and more consistent deployment using centralized resolvers. Change-Id: Ibbc1fc77aa42c1a530e2f52a5c3c4ed86d0fe8ea
24 lines
989 B
YAML
24 lines
989 B
YAML
---
|
|
# 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.
|
|
|
|
# Ensure that the package state matches the global setting
|
|
lxc_hosts_package_state: "{{ package_state }}"
|
|
openstack_hosts_package_state: "{{ package_state }}"
|
|
security_package_state: "{{ package_state }}"
|
|
|
|
#Disable /etc/hosts management if unbound DNS resolution containers exist
|
|
openstack_host_manage_hosts_file: >
|
|
"{{ groups['unbound_all'] is not defined or groups['unbound_all'] | length < 1 }}"
|