9.4. Adding dynamic metadata to instances
You can configure your deployment to create instance-specific metadata, and make the metadata available to that instance through a JSON file.
You can use dynamic metadata on the undercloud to integrate director with a Red Hat Identity Management (IdM) server. An IdM server can be used as a certificate authority and manage the overcloud certificates when SSL/TLS is enabled on the overcloud. For more information, see Add the undercloud to IdM.
Procedure
- Open your Compute environment file.
Add
DynamicJSON
to the vendordata provider module:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Specify the REST services to contact to generate the metadata. You can specify as many target REST services as required, for example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Compute service generates the JSON file,
vendordata2.json
, to contain the metadata retrieved from the configured target services, and stores it in the config drive directory.注記Do not use the same name for a target service more than once.
- Save the updates to your Compute environment file.
Add your Compute environment file to the stack with your other environment files and deploy the overcloud:
openstack overcloud deploy --templates \ -e [your environment files] \ -e /home/stack/templates/<compute_environment_file>.yaml \
(undercloud)$ openstack overcloud deploy --templates \ -e [your environment files] \ -e /home/stack/templates/<compute_environment_file>.yaml \
Copy to Clipboard Copied! Toggle word wrap Toggle overflow