charms.openstack/charms_openstack
Corey Bryant 43f32232aa Add snap support
Update core charms.openstack classes to support installation
from snap as an alternative to installation from deb packages.

Introduce a new property 'package_type' supported on the
OpenStackCharm base class which can be set to 'deb' (default) or
'snap' to indicate which type of install  a specific OpenStackCharm
subclass supports.  The list of snaps is detailed in the 'snaps'
property, and the mode for installation of snaps is configured using
the 'snap_mode' property; as for packages, a specific snap can be
chosen to drive the application version that is used for the
deployed workload.

This is supported by an additional default package type selector
which, in conjunction with the existing release selector, will
pick the correct subclass of the OpenStackCharm class to use for
the configured installation source.

Snap installation is configured using the openstack-origin
charm configuration option - for example:

    openstack-origin=snap:ocata/stable

If no suitable class can be discovered for the configured
origin, the charm will throw an error as it does today for
missing openstack release support for deb based installations.

The linked gerrit review is the first charm implementation of
snap support based on these set of changes.

Required-By: I464025a2b72aba8c31a4a97ade39d2b2980c3a92
Change-Id: Iea33a939a6422da94d3c2c5b9a0748a47bfde11a
2017-10-05 18:37:39 +00:00
..
charm Add snap support 2017-10-05 18:37:39 +00:00
devices Added ovs, odl and pci modules 2016-09-14 13:58:05 +00:00
sdn Added ovs, odl and pci modules 2016-09-14 13:58:05 +00:00
__init__.py Add license headers to all source files 2016-06-28 11:13:14 +01:00
adapters.py Add snap support 2017-10-05 18:37:39 +00:00
ip.py Add license headers to all source files 2016-06-28 11:13:14 +01:00
test_mocks.py Add charmhelpers.contrib.openstack.context mock 2017-08-04 15:55:25 +01:00
test_utils.py Fix for bug/1645473 -- test registered hooks 2016-11-30 13:05:28 +00:00