How to configure undercoud services and make changes persist during an OpenStack undercloud upgrade
Environment
- Red Hat OpenStack Platform 10
Issue
- How do I configure undercloud services and make changes persist during an OpenStack undercloud upgrade?
- How do you customize undercloud hiera?
Resolution
Use hieradata_override in /home/stack/undercloud.conf
[stack@undercloud-1 ~]$ grep hieradata_override undercloud.conf -B5
# Path to hieradata override file. If set, the file will be copied
# under /etc/puppet/hieradata and set as the first file in the hiera
# hierarchy. This can be used to to custom configure services beyond
# what undercloud.conf provides (string value)
#hieradata_override =
Create hiera override file with hiera settings that should be persistent:
nova::network::neutron::dhcp_domain: redhat.com
neutron::dns_domain: redhat.local
Configure the hieradata_override parameter in undercloud.conf.
crudini --set /home/stack/undercloud.conf DEFAULT hieradata_override /home/stack/custom_hiera.yaml
For a working example, refer to https://access.redhat.com/solutions/2089051
SBR
Product(s)
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.