Commit Graph

4 Commits

Author SHA1 Message Date
Liam Young 96a0b1e95a Fix Apache not being installed/configured for ssl
The configuration for SSL was not being run due to the vhost
not having been rendered and the ssl.enabled state not being
set when configure_ssl was run. This change creates a new state
ssl.requested which signals that ssl configuration needs to take
place. Also, an empty vhost is now created so a2ensite does not
fail.

Change-Id: Iaadcd30191e94f9345c55d9eb8551a5593b0fde4
Partial-Bug: #1719331
2017-09-27 14:24:14 +00:00
Alex Kavanagh 92d3f14919 Add 'declarative helpers'
Declarative helpers takes (most) of the boiler plate of writing an
OpenStack charm and places it into this module.  This simplified the
writing, and testing, of an OpenStack charm when using reactive and the
layered approach.

This change makes a BREAKING change to existing charms written using
charms.openstack.  This is that the 'assess-status' hook that was
originally in layer-openstack has been removed and made optional via the
declarative helpers.  This was to maintain consistency with the
declarative helpers and also to allow charm authors to write their own
'assess-status' state handler as required.

Thus there is also a change to (charm-)layer-openstack which removes the
wired in handler under the same topic.

Change-Id: I3c74f60bb4ed7901828902118697f310622c4061
2016-09-08 11:54:02 +00:00
Alex Kavanagh f4539b5be0 Fix setup.py so that it can run tox for test 2016-05-17 19:48:05 +00:00
Alex Kavanagh ffb9996696 Initial commit of OpenStackCharm for layer-openstack 2016-05-17 18:06:03 +00:00