Add version map support

Add versions for >= mitaka; use barbican-common as release package.

Change-Id: Ibdb01774f160abb77ac15e95755107e6ed4042c2
changes/14/468314/1
James Page 5 years ago
parent 88c1d23462
commit a26561f6ea
  1. 16
      src/lib/charm/openstack/barbican.py

@ -17,6 +17,7 @@
# needed on the class.
from __future__ import absolute_import
import collections
import subprocess
import charmhelpers.core.hookenv as hookenv
@ -141,6 +142,21 @@ class BarbicanCharm(charms_openstack.charm.HAOpenStackCharm):
ha_resources = ['vips', 'haproxy']
# Package for release version detection
release_pkg = 'barbican-common'
# Package codename map for barbican-common
package_codenames = {
'barbican-common': collections.OrderedDict([
('2', 'mitaka'),
('3', 'newton'),
('4', 'ocata'),
('5', 'pike'),
('6', 'queens'),
('7', 'rocky'),
]),
}
def get_amqp_credentials(self):
"""Provide the default amqp username and vhost as a tuple.

Loading…
Cancel
Save