This is the base layer to provide Hashicorp's Consul, agent or server.
To use this layer in your charm or layer, simply include 'consul-base' in your
layer.yaml like so:
# layer.yaml --- include: ['layer:consul-base'] ...
You can then react to the 'consul.installed' state in your layer or charm once consul has been installed.
from charms.reactive import set_state @when('consul.installed') def start_myapp(): set_state('consul.available')
consul.installed - This state is automatically emitted once Consul has been installed.
More on Consul
Copyright © 2016 James Beedy email@example.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.