Support hook for handling unit changes (like public IP address)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
New
|
Undecided
|
Unassigned |
Bug Description
Hi
I need a services unit's public-address to be communicated to another service in relation data.
Currently, there is no easy way to react to public IP address changes (or any other unit change). My choices for doing the above are currently:
a) install a cron jon (or similar) that checks for ip changes and push that into the realtion when changed (using juju-run, so requires dev release at time of writing)
b) have a config that is a map between unit <-> public ip address, thus duplicating the configuration and increasing likelyhood of errors and limiting scaleout.
I would like support for a "unit-changed" hook or similar that juju could trigger when things like public IP addresses change (or volumes), that would make this much simpler to handle.