Reactive base layer for consul
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/charms/layer
reactive
templates
.gitignore
Makefile
README.md
config.yaml
copyright
layer.yaml
metadata.yaml
tox.ini

README.md

layer consul-base

This is the base layer to provide Hashicorp's Consul, agent or server.

Usage

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')
    

States

consul.installed - This state is automatically emitted once Consul has been installed.

More on Consul

Copyright

Copyright © 2016 James Beedy jamesbeedy@gmail.com

License

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.