Limit LXC hosts playbook to container hosts only

This will limit the lxc-hosts-setup playbook to run against only
the hosts which will receive LXC containers. This prevents LXC
package installation and cache preparation on hosts such as
compute_hosts which will not build any containers.

Change-Id: I002158d6539603ddb86d4b7ea1e4a16bb4ced81f
This commit is contained in:
Logan V 2016-08-17 13:33:14 -05:00 committed by Jesse Pretorius (odyssey4me)
parent 1a797e42ec
commit 45b96428e7
2 changed files with 19 additions and 1 deletions

View File

@ -14,7 +14,18 @@
# limitations under the License. # limitations under the License.
- name: Basic lxc host setup - name: Basic lxc host setup
hosts: "{{ lxc_host_group|default('hosts') }}" hosts: >
{{ lxc_host_group |
default('
shared-infra_hosts
:os-infra_hosts
:repo-infra_hosts
:identity_hosts
:storage-infra_hosts
:log_hosts
:network_hosts
')
}}
gather_facts: "{{ gather_facts | default(True) }}" gather_facts: "{{ gather_facts | default(True) }}"
max_fail_percentage: 20 max_fail_percentage: 20
user: root user: root

View File

@ -0,0 +1,7 @@
---
upgrade:
- LXC package installation and cache preparation will now occur by default
only on hosts which will actually implement containers.
fixes:
- LXC package installation and cache preparation will now occur by default
only on hosts which will actually implement containers.