Commit Graph

3 Commits

Author SHA1 Message Date
David Ames 9cc097f06e Shared-DB Provides
Enable the provides side of the interface with an Endpoint
implementation.

Change-Id: If218a23445709543426de0501765ed24eb8af308
2019-10-03 07:54:03 -07:00
James Page 7b9fc4e9aa Automatically set hostname relation data
Instead of relying on the user of the interface to set the correct
hostname parameter when configuring database access request,
automatically determine the correct hostname using:

 1) In Juju >= 2.0, using the network space binding of the
    named relation.
 2) In Juju < 2.0, using the units private-address.

The hostname relation value can be overridden using the hostname
parameter of the configure method.

Change-Id: Id69a3786d2ac754aa8659b8cde977c4d86a37fc8
2017-01-25 10:47:19 +00:00
Corey Bryant 79c265c408 Initial commit 2015-11-30 15:33:53 +00:00