summaryrefslogtreecommitdiffstats
path: root/meta-openstack
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-04-08 18:10:10 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-04-10 14:38:56 -0400
commitaaf75e37f0cf759e9b5b04c8f3c23346aa053c78 (patch)
tree4cd4adb5d8244c1c36f45e38f8f6bba52c79b91c /meta-openstack
parent7f2b6ebfc0d2e4d2b8c8e6d3208a2cae435d0eeb (diff)
downloadmeta-cloud-services-aaf75e37f0cf759e9b5b04c8f3c23346aa053c78.tar.gz
python-horizon init scripts
Split out a new package horizon-standalone that just contains the init script for the built in webserver. Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r--meta-openstack/recipes-devtools/python/python-horizon/horizon.init4
-rw-r--r--meta-openstack/recipes-devtools/python/python-horizon_git.bb9
-rw-r--r--meta-openstack/recipes-extended/packagegroups/packagegroup-cloud-controller.bb1
3 files changed, 7 insertions, 7 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon/horizon.init b/meta-openstack/recipes-devtools/python/python-horizon/horizon.init
index 1c03b78..994fbec 100644
--- a/meta-openstack/recipes-devtools/python/python-horizon/horizon.init
+++ b/meta-openstack/recipes-devtools/python/python-horizon/horizon.init
@@ -66,10 +66,6 @@ status()
66 echo "$DESC is not running" 66 echo "$DESC is not running"
67} 67}
68 68
69if [ -e /etc/apache2/conf.d/openstack-dashboard-apache.conf ]; then
70 chown -R daemon /usr/share/openstack-dashboard/openstack_dashboard/static
71fi
72
73case "$1" in 69case "$1" in
74 start) 70 start)
75 start 71 start
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
index 153f4d4..59d875a 100644
--- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
@@ -86,23 +86,26 @@ do_install_append() {
86 sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf 86 sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf
87 87
88 ln -fs openstack_dashboard/static ${D}/usr/share/openstack-dashboard/static 88 ln -fs openstack_dashboard/static ${D}/usr/share/openstack-dashboard/static
89
90 # daemon is UID 1
91 chown -R 1 ${D}/usr/share/openstack-dashboard/openstack_dashboard/static
89} 92}
90 93
91PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache" 94PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone"
92 95
93FILES_${PN} = "${libdir}/*" 96FILES_${PN} = "${libdir}/*"
94 97
95FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh" 98FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh"
96 99
97FILES_${SRCNAME} = "${bindir}/* \ 100FILES_${SRCNAME} = "${bindir}/* \
98 ${sysconfdir}/init.d/* \
99 ${datadir}/* \ 101 ${datadir}/* \
100 " 102 "
101 103
104FILES_${SRCNAME}-standalone = "${sysconfdir}/init.d/horizon"
105
102FILES_${SRCNAME}-apache = "/etc/apache2 \ 106FILES_${SRCNAME}-apache = "/etc/apache2 \
103 /etc/openstack-dashboard/ \ 107 /etc/openstack-dashboard/ \
104 /usr/share/openstack-dashboard/ \ 108 /usr/share/openstack-dashboard/ \
105 /var/lib/openstack-dashboard \
106 " 109 "
107 110
108RDEP_ARCH_VAR = "" 111RDEP_ARCH_VAR = ""
diff --git a/meta-openstack/recipes-extended/packagegroups/packagegroup-cloud-controller.bb b/meta-openstack/recipes-extended/packagegroups/packagegroup-cloud-controller.bb
index b716052..a40883a 100644
--- a/meta-openstack/recipes-extended/packagegroups/packagegroup-cloud-controller.bb
+++ b/meta-openstack/recipes-extended/packagegroups/packagegroup-cloud-controller.bb
@@ -40,6 +40,7 @@ RDEPENDS_${PN} = " postgresql-setup \
40 python-heat-cfntools \ 40 python-heat-cfntools \
41 python-openstackclient \ 41 python-openstackclient \
42 horizon \ 42 horizon \
43 horizon-standalone \
43 horizon-apache \ 44 horizon-apache \
44 apache2 \ 45 apache2 \
45 novnc \ 46 novnc \