diff options
author | Amy Fong <amy.fong@windriver.com> | 2014-03-20 15:46:59 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-24 16:46:05 -0400 |
commit | 6423ced4885488dbe8cc05249d7d16cbcfe750c2 (patch) | |
tree | 490a3a3f27fc71f40c63a457988dfdd2840d1702 /meta-openstack/recipes-devtools/python/python-nova_git.bb | |
parent | 37cc0a34722fe53b8b532694ac686bbb995fe665 (diff) | |
download | meta-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.bb | 16 |
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 | " |
28 | SRCREV="afc9e4e23327fb566e8ade2c0c06c90d369c9e29" | 30 | SRCREV="afc9e4e23327fb566e8ade2c0c06c90d369c9e29" |
29 | PV="2013.2.2+git${SRCPV}" | 31 | PV="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 | ||
121 | pkg_postinst_${SRCNAME}-setup () { | 126 | pkg_postinst_${SRCNAME}-setup () { |
@@ -156,6 +161,7 @@ PACKAGES += " ${SRCNAME}-tests" | |||
156 | PACKAGES += " ${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" | 161 | PACKAGES += " ${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" |
157 | PACKAGES += " ${SRCNAME}-consoleauth" | 162 | PACKAGES += " ${SRCNAME}-consoleauth" |
158 | PACKAGES += " ${SRCNAME}-novncproxy" | 163 | PACKAGES += " ${SRCNAME}-novncproxy" |
164 | PACKAGES += " ${SRCNAME}-spicehtml5proxy" | ||
159 | PACKAGES += " ${SRCNAME}-network" | 165 | PACKAGES += " ${SRCNAME}-network" |
160 | PACKAGES += " ${SRCNAME}-scheduler" | 166 | PACKAGES += " ${SRCNAME}-scheduler" |
161 | PACKAGES += " ${SRCNAME}-cert" | 167 | PACKAGES += " ${SRCNAME}-cert" |
@@ -185,6 +191,10 @@ FILES_${SRCNAME}-consoleauth = " \ | |||
185 | FILES_${SRCNAME}-novncproxy = " \ | 191 | FILES_${SRCNAME}-novncproxy = " \ |
186 | ${sysconfdir}/init.d/nova-novncproxy \ | 192 | ${sysconfdir}/init.d/nova-novncproxy \ |
187 | " | 193 | " |
194 | FILES_${SRCNAME}-spicehtml5proxy = " \ | ||
195 | ${sysconfdir}/init.d/nova-spicehtml5proxy \ | ||
196 | ${sysconfdir}/default/nova-consoleproxy \ | ||
197 | " | ||
188 | FILES_${SRCNAME}-network = " \ | 198 | FILES_${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 | ||
250 | RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \ | 261 | RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \ |
@@ -253,6 +264,7 @@ RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \ | |||
253 | RDEPENDS_${SRCNAME}-controller = "${PN} ${SRCNAME}-common \ | 264 | RDEPENDS_${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" |
265 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-common" | 277 | RDEPENDS_${SRCNAME}-setup = "postgresql sudo ${SRCNAME}-common" |
266 | 278 | ||
267 | INITSCRIPT_PACKAGES = "${SRCNAME}-compute ${SRCNAME}-consoleauth ${SRCNAME}-novncproxy" | 279 | INITSCRIPT_PACKAGES = "${SRCNAME}-compute ${SRCNAME}-consoleauth ${SRCNAME}-novncproxy ${SRCNAME}-spicehtml5proxy" |
268 | INITSCRIPT_PACKAGES += "${SRCNAME}-network ${SRCNAME}-scheduler ${SRCNAME}-cert ${SRCNAME}-conductor" | 280 | INITSCRIPT_PACKAGES += "${SRCNAME}-network ${SRCNAME}-scheduler ${SRCNAME}-cert ${SRCNAME}-conductor" |
269 | INITSCRIPT_PACKAGES += "${SRCNAME}-api" | 281 | INITSCRIPT_PACKAGES += "${SRCNAME}-api" |
270 | 282 | ||
@@ -291,3 +303,5 @@ INITSCRIPT_PARAMS_${SRCNAME}-consoleauth = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | |||
291 | INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy" | 303 | INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy" |
292 | INITSCRIPT_PARAMS_${SRCNAME}-novncproxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | 304 | INITSCRIPT_PARAMS_${SRCNAME}-novncproxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}" |
293 | 305 | ||
306 | INITSCRIPT_NAME_${SRCNAME}-spicehtml5proxy = "nova-spicehtml5proxy" | ||
307 | INITSCRIPT_PARAMS_${SRCNAME}-spicehtml5proxy = "${OS_DEFAULT_INITSCRIPT_PARAMS}" | ||