Comment 2 for bug 1843616

Revision history for this message
Al Bailey (albailey1974) wrote :

puppet/kubernetes in the get_host_config will calculate the labels and stores them to disk on each host.

This should then be accessible in the hiera data file under:
/opt/platform/puppet/19.09/hieradata/<yaml file for this host>

Example syntax:
platform::kubernetes::params::host_labels:
- !!python/unicode 'openstack-control-plane'

All platforms will have it located under:
/tmp/puppet/hieradata/host.yaml

and that file is recreated when rebooted.

ex syntax on hardware:
platform::kubernetes::params::host_labels:
- !!python/unicode 'sriovdp'
- !!python/unicode 'openvswitch'