d90f57aca9
In order to optimise the distro package installation process the list of packages to install is prepared for the host, then installed by passing the package task the full list instead of using a loop. The package lists in defaults are removed as it is undesirable to make it easy to override these lists. This is not provided for in any other roles. Change-Id: I71307d2a808fdc0f76e376a84651dad86b3f8b69
27 lines
935 B
YAML
27 lines
935 B
YAML
---
|
|
# Copyright 2017, 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.
|
|
|
|
#
|
|
# Compile a list of the distro packages to install based on
|
|
# whether the host is in the host group and the service is
|
|
# enabled.
|
|
#
|
|
memcached_package_list: |-
|
|
{% set packages = memcached_distro_packages %}
|
|
{% if install_test_packages | bool %}
|
|
{% set _ = packages.extend(memcached_test_distro_packages) %}
|
|
{% endif %}
|
|
{{ packages }}
|