Merge "Globally disable service resource in containers"

This commit is contained in:
Zuul 2022-04-25 12:13:17 +00:00 committed by Gerrit Code Review
commit 4f29e00f7a
3 changed files with 6 additions and 3 deletions

View File

@ -24,7 +24,11 @@ if [ -n "$PUPPET_TAGS" ]; then
fi
if [ ! -z ${STEP_CONFIG+x} ]; then
echo -e "${STEP_CONFIG}" | tee /etc/config.pp
# package and service should NOT be managed inside containers
echo -e "noop_resource('package')" | tee /etc/config.pp
echo -e "noop_resource('service')" | tee -a /etc/config.pp
echo -e "${STEP_CONFIG}" | tee -a /etc/config.pp
fi
CHECK_MODE=""

View File

@ -80,7 +80,7 @@ outputs:
--color=false \
--modulepath /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules \
--tags $TAGS \
-e "noop_resource('package'); ${CONFIG}"
-e "noop_resource('package'); noop_resource('service') ;${CONFIG}"
rc=$?
set -e
set +ux

View File

@ -274,7 +274,6 @@ outputs:
- "\n"
- - "class xinetd() {}"
- "define xinetd::service($bind='',$port='',$server='',$server_args='') {}"
- "noop_resource('service')"
- "include tripleo::profile::base::swift::storage"
config_image: {get_attr: [RoleParametersValue, value, ContainerSwiftConfigImage]}
kolla_config: