#!/bin/bash set -eux manifest=$(get-pip-manifest os-collect-config) install-packages build-essential libz-dev libxslt-dev libxml2-dev python-dev virtualenv --setuptools /opt/stack/venvs/os-collect-config set +u source /opt/stack/venvs/os-collect-config/bin/activate set -u if [ -n "$manifest" ]; then use-pip-manifest $manifest else # Need setuptools>=1.0 to manage connections when # downloading from pypi using http_proxy and https_proxy /opt/stack/venvs/os-collect-config/bin/pip install -U 'setuptools>=1.0' # bug #1293812 : Avoid easy_install triggering on pbr. /opt/stack/venvs/os-collect-config/bin/pip install -U 'pbr>=0.6,<1.0' /opt/stack/venvs/os-collect-config/bin/pip install --pre -U os-collect-config fi # Write the manifest of what was installed write-pip-manifest os-collect-config ln -s /opt/stack/venvs/os-collect-config/bin/os-collect-config /usr/local/bin/os-collect-config # Minimal static config for bootstrapping cat > /etc/os-collect-config.conf < /etc/init/os-collect-config.conf <&1 | logger -t os-collect-config eof elif [ "$DIB_INIT_SYSTEM" == "systemd" ] ; then cat > /lib/systemd/system/os-collect-config.service <