Page MenuHomeClusterLabs Projects

Allow setting environment variables for resources
Open, WishlistPublic

Assigned To
None
Authored By
kgaillot
Thu, Dec 12, 10:59 AM
Tags
  • Restricted Project
  • Restricted Project
  • Restricted Project
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

Allow resources to take a new nvpair set (comparable to instance attributes and meta-attributes), something like:

<environment id="rsc1-env1">
   <nvpair id="rsc1-env1-var1" name="MYAGENT_DEBUG" value="1"/>
   ...
</environment>

The scheduler would add these to start actions in the transition graph, the controller would pass them to the executor, and the executor (probably via the services library) would set them in the forked child's environment before exec'ing the agent.

This would be especially useful for bundles, which currently can load environment variables from /etc/pacemaker/pcmk-init.env inside the container, to avoid having to add that file to the container image. Bundles could potentially pass the variables via the container launcher command line rather than use the above approach.

Event Timeline

kgaillot triaged this task as Wishlist priority.Thu, Dec 12, 10:59 AM
kgaillot created this task.
kgaillot created this object with edit policy "Restricted Project (Project)".