Add package install support for tuskar

Support installing from packages and source for the tuskar element. Adds
svc-map support for tuskar-api to support the service being named
differently between source and package installs.

Change-Id: I189748f91b17e398d15b91bd1bd6ce2f2de02a73
This commit is contained in:
James Slagle
2014-10-17 11:56:12 -04:00
parent d4cceac4d9
commit 3c8e2f9546
6 changed files with 11 additions and 3 deletions

View File

@@ -2,5 +2,6 @@ os-apply-config
os-is-bootstrap-host
os-refresh-config
os-svc-install
package-installs
source-repositories
tripleo-heat-templates

View File

@@ -0,0 +1 @@
tuskar_package

View File

@@ -1,6 +1,5 @@
#!/bin/bash
set -eux
os-svc-enable -n tuskar-api
service tuskar-api restart
os-svc-enable -an tuskar-api
os-svc-restart -an tuskar-api

5
elements/tuskar/pkg-map Normal file
View File

@@ -0,0 +1,5 @@
{
"default": {
"tuskar_package": "openstack-tuskar"
}
}

2
elements/tuskar/svc-map Normal file
View File

@@ -0,0 +1,2 @@
tuskar-api:
default: openstack-tuskar-api