diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-23 23:31:25 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-23 23:31:25 -0400 |
commit | 2ba40be73f3abf28ffb0c8d1b3fd65dbf237ac4c (patch) | |
tree | d6009e1746fba6fcd78e689e018e645add451752 /meta-openstack/recipes-devtools/python/python-barbican_git.bb | |
parent | 693b0eb259816510b5fc6123ef6cc72138154b31 (diff) | |
download | meta-cloud-services-2ba40be73f3abf28ffb0c8d1b3fd65dbf237ac4c.tar.gz |
barbican: ReST API designed for the secure storage, provisioning and management of secrets
Introduce the barbican package: https://wiki.openstack.org/wiki/Barbican, to
support the management of keys and secrets on an OpenStack system.
The barbican api service can be started with the packaged initscript, and has
been validated against the barbican quick start guide.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-barbican_git.bb')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-barbican_git.bb | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-barbican_git.bb b/meta-openstack/recipes-devtools/python/python-barbican_git.bb new file mode 100644 index 0000000..838346c --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-barbican_git.bb | |||
@@ -0,0 +1,100 @@ | |||
1 | DESCRIPTION = "Barbican is a ReST API designed for the secure storage, provisioning and management of secrets." | ||
2 | HOMEPAGE = "https://wiki.openstack.org/wiki/Barbican" | ||
3 | SECTION = "devel/python" | ||
4 | LICENSE = "Apache-2.0" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fc8be9e7dffe97390d1216b01fd0be01" | ||
6 | |||
7 | PR = "r0" | ||
8 | SRCNAME = "barbican" | ||
9 | |||
10 | SRC_URI = "git://github.com/stackforge/barbican.git;branch=master \ | ||
11 | file://barbican.init \ | ||
12 | " | ||
13 | |||
14 | SRCREV="177d4499af6b261f48814503e3565f433e86cc66" | ||
15 | PV="2014.1+git${SRCPV}" | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit update-rc.d setuptools identity hosts useradd default_configs | ||
19 | |||
20 | do_install_append() { | ||
21 | TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} | ||
22 | BARBICAN_CONF_DIR=${D}${sysconfdir}/${SRCNAME} | ||
23 | |||
24 | install -d ${BARBICAN_CONF_DIR} | ||
25 | cp -r ${TEMPLATE_CONF_DIR}/* ${BARBICAN_CONF_DIR} | ||
26 | |||
27 | install -d ${D}${localstatedir}/lib/barbican | ||
28 | |||
29 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
30 | install -d ${D}${sysconfdir}/init.d | ||
31 | |||
32 | for binary in api; do | ||
33 | sed "s:@suffix@:$binary:" < ${WORKDIR}/barbican.init >${WORKDIR}/barbican-$binary.init.sh | ||
34 | install -m 0755 ${WORKDIR}/barbican-$binary.init.sh ${D}${sysconfdir}/init.d/barbican-$binary | ||
35 | done | ||
36 | fi | ||
37 | } | ||
38 | |||
39 | USERADD_PACKAGES = "${PN}" | ||
40 | GROUPADD_PARAM_${PN} = "--system barbican" | ||
41 | USERADD_PARAM_${PN} = "--system --home /var/lib/barbican -g barbican \ | ||
42 | --no-create-home --shell /bin/false barbican" | ||
43 | |||
44 | PACKAGES += "${SRCNAME} \ | ||
45 | ${SRCNAME}-setup " | ||
46 | |||
47 | FILES_${PN} = "${libdir}/* \ | ||
48 | " | ||
49 | FILES_${SRCNAME} = "${sysconfdir}/${SRCNAME}/* \ | ||
50 | ${sysconfdir}/init.d/barbican-api \ | ||
51 | ${bindir}/* \ | ||
52 | ${localstatedir}/* \ | ||
53 | " | ||
54 | |||
55 | ALLOW_EMPTY_${SRCNAME}-setup = "1" | ||
56 | pkg_postinst_${SRCNAME}-setup () { | ||
57 | if [ "x$D" != "x" ]; then | ||
58 | exit 1 | ||
59 | fi | ||
60 | |||
61 | chown -R barbican:barbican ${sysconfdir}/${SRCNAME} | ||
62 | chown -R barbican:barbican ${localstatedir}/lib/barbican | ||
63 | } | ||
64 | |||
65 | DEPENDS += " \ | ||
66 | python-pip \ | ||
67 | python-pbr \ | ||
68 | " | ||
69 | |||
70 | RDEPENDS_${SRCNAME} = "${PN} \ | ||
71 | ${SRCNAME}-setup \ | ||
72 | uwsgi \ | ||
73 | python-falcon \ | ||
74 | python-oslo.messaging" | ||
75 | |||
76 | RDEPENDS_${PN} += " \ | ||
77 | python-pip \ | ||
78 | python-pbr \ | ||
79 | python-alembic \ | ||
80 | python-babel \ | ||
81 | python-eventlet \ | ||
82 | python-falcon \ | ||
83 | python-iso8601 \ | ||
84 | python-jsonschema \ | ||
85 | python-kombu \ | ||
86 | python-netaddr \ | ||
87 | python-pastedeploy \ | ||
88 | python-paste \ | ||
89 | python-pycrypto \ | ||
90 | python-pysqlite \ | ||
91 | python-keystoneclient \ | ||
92 | python-sqlalchemy \ | ||
93 | python-stevedore \ | ||
94 | python-webob \ | ||
95 | python-wsgiref \ | ||
96 | " | ||
97 | |||
98 | INITSCRIPT_PACKAGES = "${SRCNAME}" | ||
99 | INITSCRIPT_NAME_${SRCNAME} = "barbican-api" | ||
100 | INITSCRIPT_PARAMS_${SRCNAME} = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||