3
from charmhelpers.core import hookenv
4
from charmhelpers.core.services import helpers
9
class ThrukAgentRelation(helpers.RelationContext):
11
Relation context for the `thruk-agent` interface.
13
:param str name: Override the relation :attr:`name`, since it can vary from charm to charm
14
:param list additional_required_keys: Extend the list of :attr:`required_keys`
17
interface = 'thruk-agent'
19
def provide_data(self):
21
m.update(hookenv.config('nagios_context'))
22
thruk_id = m.hexdigest()
25
'host': hookenv.config('host'),
26
'port': hookenv.config('port'),
27
'nagios_context': hookenv.config('nagios_context'),
28
'thruk_key': hookenv.config('thruk_key'),