Browse Source

Merge "Trim whitespace in multi-line env descriptions"

changes/99/652599/4
Zuul 3 years ago
committed by Gerrit Code Review
parent
commit
47126b8431
  1. 2
      environments/enable-designate.yaml
  2. 4
      environments/standalone/standalone-overcloud.yaml
  3. 4
      environments/standalone/standalone-tripleo.yaml
  4. 5
      tripleo_heat_templates/environment_generator.py

2
environments/enable-designate.yaml

@ -8,7 +8,7 @@
# description: |
# EXPERIMENTAL: This service is not considered ready for production and
# should only be used for development and test purposes at this time.
#
#
# This environment enables the Designate services. One of the
# designate-config* environment files must also be included.
resource_registry:

4
environments/standalone/standalone-overcloud.yaml

@ -8,7 +8,7 @@
# description: |
# A Heat environment that can be used to deploy a single node all-in-one
# node via an Undercloud using the normal Overcloud deployment process.
#
#
# By default we only want the following OpenStack services to be enabled:
# * Keystone
# * Nova (and related)
@ -19,7 +19,7 @@
# * Horizon
# This file disables any other OpenStack services that would normally be
# enabled.
#
#
# openstack overcloud roles generate -o ~/roles_data.yaml Standalone
parameter_defaults:
# DNS servers to use for the Overcloud (2 max for some implementations). If not set the nameservers configured in the ctlplane subnet's dns_nameservers attribute will be used.

4
environments/standalone/standalone-tripleo.yaml

@ -10,7 +10,7 @@
# node via the 'overcloud tripleo deploy' command. This does not
# require an Undercloud for the deployment and can be used to deploy
# a single node on the local machine.
#
#
# By default we only want the following OpenStack services to be enabled:
# * Keystone
# * Nova (and related)
@ -21,7 +21,7 @@
# * Horizon
# This file disables any other OpenStack services that would normally be
# enabled.
#
#
# openstack overcloud roles generate -o ~/roles_data.yaml Standalone
parameter_defaults:
# Set to true to append per network Vips to /etc/hosts on each node.

5
tripleo_heat_templates/environment_generator.py

@ -181,7 +181,10 @@ def _generate_environment(input_env, output_path, parent_env=None):
env_desc = env.get('description', '')
env_file.write(u'# description: |\n')
for line in env_desc.splitlines():
env_file.write(u'# %s\n' % line)
if line:
env_file.write(u'# %s\n' % line)
else:
env_file.write('#\n')
if parameter_defaults or static_defaults:
env_file.write(u'parameter_defaults:\n')
write_params_entry(env_file, parameter_defaults[_PARAMETERS],

Loading…
Cancel
Save