Create os-cloud-config element
Create an element for installing os-cloud-config, in case there is ever a time when it is intended to be run from a deployed image, rather than on the host that is running devtest. Change-Id: Id126495a4ead2aba00fb33619352dc2daae4acc5 Co-Authored-By: Jon-Paul Sullivan <jonpaul.sullivan@hp.com>
This commit is contained in:
parent
db4b22ec17
commit
788c293d2c
4
elements/os-cloud-config/README.md
Normal file
4
elements/os-cloud-config/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Install os-cloud-config
|
||||||
|
=======================
|
||||||
|
|
||||||
|
os-cloud-config contains useful utilities such as init-keystone, register-nodes
|
2
elements/os-cloud-config/element-deps
Normal file
2
elements/os-cloud-config/element-deps
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pip-and-virtualenv
|
||||||
|
pip-manifest
|
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export DIB_INSTALLTYPE_os_cloud_config="${DIB_INSTALLTYPE_os_cloud_config:-"pip"}"
|
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
install-packages os-cloud-config
|
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eux
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
manifest=$(get-pip-manifest os-cloud-config)
|
||||||
|
VENV=/opt/stack/venvs/os-cloud-config
|
||||||
|
|
||||||
|
virtualenv --setuptools $VENV
|
||||||
|
set +u
|
||||||
|
source ${VENV}/bin/activate
|
||||||
|
set -u
|
||||||
|
|
||||||
|
if [ -n "$manifest" ]; then
|
||||||
|
use-pip-manifest $manifest
|
||||||
|
else
|
||||||
|
# bug #1201253 : virtualenv-1.10.1 embeds setuptools-0.9.8, which
|
||||||
|
# doesn't manage correctly HTTPS sockets when downloading pbr from
|
||||||
|
# https://pypi.python.org/simple/ if using http_proxy and https_proxy
|
||||||
|
# envvars
|
||||||
|
${VENV}/bin/pip install -U 'setuptools>=1.0'
|
||||||
|
# bug #1293812 : Avoid easy_install triggering on pbr.
|
||||||
|
${VENV}/bin/pip install -U 'pbr>=0.6,<1.0'
|
||||||
|
${VENV}/bin/pip install --install-option="--install-scripts=/usr/local/bin" -U os-cloud-config
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Write the manifest of what was installed
|
||||||
|
write-pip-manifest os-cloud-config
|
||||||
|
|
||||||
|
set +u
|
||||||
|
deactivate
|
||||||
|
set -u
|
Loading…
Reference in New Issue
Block a user