23 lines
1.0 KiB
Bash
Executable File
23 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
ROOT="$(dirname `readlink -f $0`)"
|
|
MODULES="${ROOT}"/deployment_scripts/puppet/modules
|
|
RPM_REPO="${ROOT}"/repositories/centos/
|
|
DEB_REPO="${ROOT}"/repositories/ubuntu/
|
|
HEKA_VERSION="0.9.0"
|
|
# The following commit is the id for the 6.0 tag
|
|
FUEL_LIB_SHA1="b977b77b7e1fca1f38e701373601e9fe3430eaee"
|
|
FUEL_LIB_TARBALL_URL="https://github.com/stackforge/fuel-library/tarball/${FUEL_LIB_SHA1}"
|
|
|
|
# Clean-up first
|
|
rm -rf ${MODULES}/{stdlib,openstack}/
|
|
|
|
wget -qO - https://github.com/mozilla-services/heka/releases/download/v${HEKA_VERSION}/heka_${HEKA_VERSION}_amd64.deb > ${DEB_REPO}/heka_${HEKA_VERSION}_amd64.deb
|
|
wget -qO - https://github.com/mozilla-services/heka/releases/download/v${HEKA_VERSION}/heka-${HEKA_VERSION//./_}-linux-amd64.rpm > ${RPM_REPO}/heka-${HEKA_VERSION//./_}-linux-amd64.rpm
|
|
|
|
# Include dependent manifests from fuel-library
|
|
wget -qO- "${FUEL_LIB_TARBALL_URL}" | \
|
|
tar -C "${MODULES}" --strip-components=3 -zxvf - \
|
|
stackforge-fuel-library-${FUEL_LIB_SHA1:0:7}/deployment/puppet/{stdlib,keystone,openstack}
|