summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova_git.bb
diff options
context:
space:
mode:
authorAmy Fong <amy.fong@windriver.com>2014-03-20 15:46:59 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-03-24 16:46:05 -0400
commit6423ced4885488dbe8cc05249d7d16cbcfe750c2 (patch)
tree490a3a3f27fc71f40c63a457988dfdd2840d1702 /meta-openstack/recipes-devtools/python/python-nova_git.bb
parent37cc0a34722fe53b8b532694ac686bbb995fe665 (diff)
downloadmeta-cloud-services-6423ced4885488dbe8cc05249d7d16cbcfe750c2.tar.gz
OpenStack: add SPICE console support
Package spice-html5 Modify python-nova to add infrastructure for nova-spicehtml5proxy support. Note: spice is the default Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova_git.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova_git.bb16
1 files changed, 15 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb
index 523102a..427c167 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb
@@ -22,8 +22,10 @@ SRC_URI += "file://nova-all \
22 file://nova.init \ 22 file://nova.init \
23 file://nova-consoleauth \ 23 file://nova-consoleauth \
24 file://nova-novncproxy \ 24 file://nova-novncproxy \
25 file://nova-spicehtml5proxy \
25 file://nova.conf \ 26 file://nova.conf \
26 file://openrc \ 27 file://openrc \
28 file://nova-consoleproxy \
27 " 29 "
28SRCREV="afc9e4e23327fb566e8ade2c0c06c90d369c9e29" 30SRCREV="afc9e4e23327fb566e8ade2c0c06c90d369c9e29"
29PV="2013.2.2+git${SRCPV}" 31PV="2013.2.2+git${SRCPV}"
@@ -108,6 +110,7 @@ do_install_append() {
108 install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all 110 install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all
109 install -m 0755 ${WORKDIR}/nova-consoleauth ${D}${sysconfdir}/init.d/nova-consoleauth 111 install -m 0755 ${WORKDIR}/nova-consoleauth ${D}${sysconfdir}/init.d/nova-consoleauth
110 install -m 0755 ${WORKDIR}/nova-novncproxy ${D}${sysconfdir}/init.d/nova-novncproxy 112 install -m 0755 ${WORKDIR}/nova-novncproxy ${D}${sysconfdir}/init.d/nova-novncproxy
113 install -m 0755 ${WORKDIR}/nova-spicehtml5proxy ${D}${sysconfdir}/init.d/nova-spicehtml5proxy
111 114
112 for binary in api compute network scheduler cert conductor; do 115 for binary in api compute network scheduler cert conductor; do
113 sed "s:@suffix@:$binary:" < ${WORKDIR}/nova.init >${WORKDIR}/nova-$binary.init.sh 116 sed "s:@suffix@:$binary:" < ${WORKDIR}/nova.init >${WORKDIR}/nova-$binary.init.sh
@@ -116,6 +119,8 @@ do_install_append() {
116 fi 119 fi
117 120
118 cp run_tests.sh ${NOVA_CONF_DIR} 121 cp run_tests.sh ${NOVA_CONF_DIR}
122
123 install -D -o nova -m 664 ${WORKDIR}/nova-consoleproxy ${D}${sysconfdir}/default/nova-consoleproxy
119} 124}
120 125
121pkg_postinst_${SRCNAME}-setup () { 126pkg_postinst_${SRCNAME}-setup () {
@@ -156,6 +161,7 @@ PACKAGES += " ${SRCNAME}-tests"
156PACKAGES += " ${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" 161PACKAGES += " ${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller"
157PACKAGES += " ${SRCNAME}-consoleauth" 162PACKAGES += " ${SRCNAME}-consoleauth"
158PACKAGES += " ${SRCNAME}-novncproxy" 163PACKAGES += " ${SRCNAME}-novncproxy"
164PACKAGES += " ${SRCNAME}-spicehtml5proxy"
159PACKAGES += " ${SRCNAME}-network" 165PACKAGES += " ${SRCNAME}-network"
160PACKAGES += " ${SRCNAME}-scheduler" 166PACKAGES += " ${SRCNAME}-scheduler"
161PACKAGES += " ${SRCNAME}-cert" 167PACKAGES += " ${SRCNAME}-cert"
@@ -185,6 +191,10 @@ FILES_${SRCNAME}-consoleauth = " \
185FILES_${SRCNAME}-novncproxy = " \ 191FILES_${SRCNAME}-novncproxy = " \
186 ${sysconfdir}/init.d/nova-novncproxy \ 192 ${sysconfdir}/init.d/nova-novncproxy \
187" 193"
194FILES_${SRCNAME}-spicehtml5proxy = " \
195 ${sysconfdir}/init.d/nova-spicehtml5proxy \
196 ${sysconfdir}/default/nova-consoleproxy \
197"
188FILES_${SRCNAME}-network = " \ 198FILES_${SRCNAME}-network = " \
189 ${sysconfdir}/init.d/nova-network \ 199 ${sysconfdir}/init.d/nova-network \
190" 200"
@@ -245,6 +255,7 @@ RDEPENDS_${PN} = " libvirt \
245 python-webob \ 255 python-webob \
246 python-websockify \ 256 python-websockify \
247 python-pbr \ 257 python-pbr \
258 spice-html5 \
248 " 259 "
249 260
250RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \ 261RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \
@@ -253,6 +264,7 @@ RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \
253RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-common \ 264RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-common \
254 ${SRCNAME}-consoleauth \ 265 ${SRCNAME}-consoleauth \
255 ${SRCNAME}-novncproxy \ 266 ${SRCNAME}-novncproxy \
267 ${SRCNAME}-spicehtml5proxy \
256 ${SRCNAME}-network \ 268 ${SRCNAME}-network \
257 ${SRCNAME}-scheduler \ 269 ${SRCNAME}-scheduler \
258 ${SRCNAME}-cert \ 270 ${SRCNAME}-cert \
@@ -264,7 +276,7 @@ RDEPENDS_${SRCNAME}-compute = "${PN} ${SRCNAME}-common \
264 qemu libvirt libvirt-libvirtd libvirt-python libvirt-virsh" 276 qemu libvirt libvirt-libvirtd libvirt-python libvirt-virsh"
265RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-common" 277RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-common"
266 278
267INITSCRIPT_PACKAGES = "${SRCNAME}-compute ${SRCNAME}-consoleauth ${SRCNAME}-novncproxy" 279INITSCRIPT_PACKAGES = "${SRCNAME}-compute ${SRCNAME}-consoleauth ${SRCNAME}-novncproxy ${SRCNAME}-spicehtml5proxy"
268INITSCRIPT_PACKAGES += "${SRCNAME}-network ${SRCNAME}-scheduler ${SRCNAME}-cert ${SRCNAME}-conductor" 280INITSCRIPT_PACKAGES += "${SRCNAME}-network ${SRCNAME}-scheduler ${SRCNAME}-cert ${SRCNAME}-conductor"
269INITSCRIPT_PACKAGES += "${SRCNAME}-api" 281INITSCRIPT_PACKAGES += "${SRCNAME}-api"
270 282
@@ -291,3 +303,5 @@ INITSCRIPT_PARAMS_${SRCNAME}-consoleauth = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
291INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy" 303INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy"
292INITSCRIPT_PARAMS_${SRCNAME}-novncproxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}" 304INITSCRIPT_PARAMS_${SRCNAME}-novncproxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}"
293 305
306INITSCRIPT_NAME_${SRCNAME}-spicehtml5proxy = "nova-spicehtml5proxy"
307INITSCRIPT_PARAMS_${SRCNAME}-spicehtml5proxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}"