From 45b96428e773271d9a14a7cd307d7c99c0d84dbe Mon Sep 17 00:00:00 2001 From: Logan V Date: Wed, 17 Aug 2016 13:33:14 -0500 Subject: [PATCH] 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 --- playbooks/lxc-hosts-setup.yml | 13 ++++++++++++- .../notes/lxc-hosts-limit-9784050b888ea7c8.yaml | 7 +++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/lxc-hosts-limit-9784050b888ea7c8.yaml diff --git a/playbooks/lxc-hosts-setup.yml b/playbooks/lxc-hosts-setup.yml index 8cc0e857ee..66c77b8724 100644 --- a/playbooks/lxc-hosts-setup.yml +++ b/playbooks/lxc-hosts-setup.yml @@ -14,7 +14,18 @@ # limitations under the License. - 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) }}" max_fail_percentage: 20 user: root diff --git a/releasenotes/notes/lxc-hosts-limit-9784050b888ea7c8.yaml b/releasenotes/notes/lxc-hosts-limit-9784050b888ea7c8.yaml new file mode 100644 index 0000000000..153186cc0d --- /dev/null +++ b/releasenotes/notes/lxc-hosts-limit-9784050b888ea7c8.yaml @@ -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.