diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-03 00:20:31 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-03 01:16:44 -0400 |
| commit | b625b4c4c3d299e3830951304f468a5399828b51 (patch) | |
| tree | ca62e1ff521cb2be4849930a52dd735d779c6b1b /meta-openstack/recipes-devtools/python/python-nova-controller_2013.1.3.bb | |
| parent | 718ecf27999c69acae27992123d2a7fe85d64c77 (diff) | |
| download | meta-cloud-services-b625b4c4c3d299e3830951304f468a5399828b51.tar.gz | |
nova: add novnc console proxy support
With this commit the appropriate daemons are started on a control node boot to
support horizon console access via the novnc proxy.
Additionally, the proper nova configuration is set for boh the control and
compute nodes for out of the box console connectivity between the compute,
control and horizone interface.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova-controller_2013.1.3.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova-controller_2013.1.3.bb | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova-controller_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-nova-controller_2013.1.3.bb index 36b5ba3..c99a890 100644 --- a/meta-openstack/recipes-devtools/python/python-nova-controller_2013.1.3.bb +++ b/meta-openstack/recipes-devtools/python/python-nova-controller_2013.1.3.bb | |||
| @@ -5,19 +5,24 @@ PR = "r0" | |||
| 5 | FILESEXTRAPATHS := "${THISDIR}/${PYTHON_PN}" | 5 | FILESEXTRAPATHS := "${THISDIR}/${PYTHON_PN}" |
| 6 | 6 | ||
| 7 | SRC_URI += "file://nova-all \ | 7 | SRC_URI += "file://nova-all \ |
| 8 | file://nova-consoleauth \ | ||
| 9 | file://nova-novncproxy \ | ||
| 8 | file://nova.conf \ | 10 | file://nova.conf \ |
| 9 | file://openrc \ | 11 | file://openrc \ |
| 10 | " | 12 | " |
| 11 | 13 | ||
| 12 | inherit hosts update-rc.d | 14 | inherit hosts update-rc.d |
| 13 | 15 | ||
| 14 | #PACKAGES = "${SRCNAME}-controller ${SRCNAME}-controller-misc" | ||
| 15 | PACKAGES = "${PN} ${PN}-dbg ${SRCNAME}-controller-misc ${SRCNAME}-controller" | 16 | PACKAGES = "${PN} ${PN}-dbg ${SRCNAME}-controller-misc ${SRCNAME}-controller" |
| 17 | PACKAGES += " ${SRCNAME}-consoleauth" | ||
| 18 | PACKAGES += " ${SRCNAME}-novncproxy" | ||
| 16 | 19 | ||
| 17 | do_install_append() { | 20 | do_install_append() { |
| 18 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 21 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 19 | install -d ${D}${sysconfdir}/init.d | 22 | install -d ${D}${sysconfdir}/init.d |
| 20 | install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all | 23 | install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all |
| 24 | install -m 0755 ${WORKDIR}/nova-consoleauth ${D}${sysconfdir}/init.d/nova-consoleauth | ||
| 25 | install -m 0755 ${WORKDIR}/nova-novncproxy ${D}${sysconfdir}/init.d/nova-novncproxy | ||
| 21 | fi | 26 | fi |
| 22 | } | 27 | } |
| 23 | 28 | ||
| @@ -49,7 +54,15 @@ pkg_postinst_${SRCNAME}-controller () { | |||
| 49 | FILES_${SRCNAME}-controller = " \ | 54 | FILES_${SRCNAME}-controller = " \ |
| 50 | ${bindir} \ | 55 | ${bindir} \ |
| 51 | ${sysconfdir}/${SRCNAME}/* \ | 56 | ${sysconfdir}/${SRCNAME}/* \ |
| 52 | ${sysconfdir}/init.d/nova-all" | 57 | ${sysconfdir}/init.d/nova-all \ |
| 58 | " | ||
| 59 | |||
| 60 | FILES_${SRCNAME}-consoleauth = " \ | ||
| 61 | ${sysconfdir}/init.d/nova-consoleauth \ | ||
| 62 | " | ||
| 63 | FILES_${SRCNAME}-novncproxy = " \ | ||
| 64 | ${sysconfdir}/init.d/nova-novncproxy \ | ||
| 65 | " | ||
| 53 | 66 | ||
| 54 | FILES_${SRCNAME}-controller-misc = " \ | 67 | FILES_${SRCNAME}-controller-misc = " \ |
| 55 | ${bindir}/nova-compute \ | 68 | ${bindir}/nova-compute \ |
| @@ -62,10 +75,13 @@ FILES_${SRCNAME}-controller-misc = " \ | |||
| 62 | FILES_${PN} = " \ | 75 | FILES_${PN} = " \ |
| 63 | ${libdir}/python*/site-packages" | 76 | ${libdir}/python*/site-packages" |
| 64 | 77 | ||
| 65 | RDEPENDS_${SRCNAME}-controller = "${PYTHON_PN} ${SRCNAME}-common \ | 78 | RDEPENDS_${SRCNAME}-controller = "${PYTHON_PN} ${SRCNAME}-common ${SRCNAME}-consoleauth \ |
| 79 | ${SRCNAME}-novncproxy \ | ||
| 66 | postgresql postgresql-client python-psycopg2" | 80 | postgresql postgresql-client python-psycopg2" |
| 67 | 81 | ||
| 68 | RCONFLICTS_${SRCNAME}-controller = "${SRCNAME}-compute" | 82 | RCONFLICTS_${SRCNAME}-controller = "${SRCNAME}-compute" |
| 69 | 83 | ||
| 70 | INITSCRIPT_PACKAGES = "${SRCNAME}-controller" | 84 | INITSCRIPT_PACKAGES = "${SRCNAME}-controller ${SRCNAME}-consoleauth ${SRCNAME}-novncproxy" |
| 71 | INITSCRIPT_NAME_${SRCNAME}-controller = "nova-all" | 85 | INITSCRIPT_NAME_${SRCNAME}-controller = "nova-all" |
| 86 | INITSCRIPT_NAME_${SRCNAME}-consoleauth = "nova-consoleauth" | ||
| 87 | INITSCRIPT_NAME_${SRCNAME}-novncproxy = "nova-novncproxy" | ||
