Commit Graph

7 Commits

Author SHA1 Message Date
Frode Nordahl 42f82ffaa8
Add list of files to exclude on layer consumption
Change-Id: I4791f29f850e809a35c40b562e018a2f743e22d1
Closes-Bug: #1852424
2019-11-13 14:05:18 +01:00
Frode Nordahl 1df85ff800
Add default certificates relation handlers
These where moved up to this layer from ``layer-openstack-api``,
removal counterpart: I007275c041ca5465664a6b5d441e56c0316c405d

Guard the default handlers behind check for
'charms.openstack.do-default-certificates.available' flag.  This
flag is activated when the consumer charm makes a call to
charm.use_defaults('certificates.available') from its reactive
handler.  Previously it was always activated for all consumers of
the ``openstack-api`` layer, it should be up to the charm
implementation to choose.

We do not add back ``layer-tls-client``, the reason being that
the reactive bits in ``layer-openstack`` in conjunction with
helpers in ``charms.openstack`` is managing both the server and CA
certificates and rely on the same flags to detect changes.

If we one day offload those tasks to the ``layer-tls-client``
we should add it back in conjunction with removing our code for
this.  At the time of this writing it would not be possible as
``layer-tls-client`` is not spaces aware.

With the above mentioned change we can stop relying on the now
deprecated ``certificates.batch.cert.available`` flag.

We also do not add back the Keystone certificates handling code
as this has been removed from the Keystone charm reference:
openstack/charm-keystone/commit/17b24e7fde8e4c8c276a4f392cbae0d1d0ed2615

Needed-By: I007275c041ca5465664a6b5d441e56c0316c405d
Needed-By: I8a72acd451dd21e1b042b7f71f6d98e164737ac1
Closes-Bug: #1840899
Change-Id: I12f45236632b608e07fdd35d31b90b84ca92eb1f
2019-08-29 12:44:49 +02:00
James Page 767b6d2595 Add basic tox targets 2016-07-01 10:29:08 +01:00
Ryan Beisner f262adaafd Stop ignoring README.md
Although that should be expected to work, the current charm
build behavior is that any ignore declarations at any layer,
both lower and higher levels, will be ignored during build.

That means that this declaration causes the top layer's
README.md to also be dropped and not included in the build.

This behavior is believed to be a bug, but pending resolution
within the tools, assume ignores are global to the whole
build stack.

Reference:  https://github.com/juju/charm-tools/issues/220
2016-06-09 18:02:57 +00:00
Alex Kavanagh 0d8a4f07d4 Remove code from layer-openstack
The code has shifted to the charm.openstack (at the time of writing)
module that will be included in the built charm, rather than being in
the layer.  The idea is to make it easier to test/stub out openstack
charms.
2016-05-17 20:54:56 +00:00
Alex Kavanagh 20d3c49893 Add tests to the layer-openstack
Add unit tests to the adapters, charm and ip parts of the lib to ensure
that the API to the classes remains stable with no unplanned regessions
over time.
2016-05-10 09:46:58 +00:00
James Page 3a0aee7151 Add layer definition, base of standard charm layer 2015-12-04 13:46:29 +00:00