juju_controller_agent_name

The juju_controller_agent_name macro returns the name of the controller agent that is currently running.

Usage

juju_controller_agent_name

Returns a string containing the agent (controller) name.

This macro is only available on controller machines – everywhere else it returns an empty string.

Example output

controller-0