fuel-plugin-influxdb-grafana/pre_build_hook
Simon Pasquier db16fc9fe1 Remove the RPM packages
Since MOS 7.0 won't support CentOS systems, we can remove the RPM
packages from the pre_build_hook script.

Change-Id: I447900c4ba3004998d1be674cea683b9cbbfe9ed
2015-09-15 17:34:34 +02:00

24 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
set -eux
. "$(dirname "$(readlink -f "$0")")"/functions.sh
APT_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/puppetlabs-apt-2.1.1.tar.gz"
CONCAT_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/puppetlabs-concat-1.2.4.tar.gz"
STDLIB_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/puppetlabs-stdlib-4.7.0.tar.gz"
INIFILE_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/puppetlabs-inifile-1.4.1.tar.gz"
LVM_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/puppetlabs-lvm-0.5.0.tar.gz"
GRAFANA_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/bfraser-grafana-2.1.0.tar.gz"
download_package https://s3.amazonaws.com/influxdb/influxdb_0.9.2_amd64.deb
download_package https://grafanarel.s3.amazonaws.com/builds/grafana_2.1.3_amd64.deb
# Download Puppet modules
download_puppet_module "grafana" "$GRAFANA_TARBALL_URL"
download_puppet_module "apt" "$APT_TARBALL_URL"
download_puppet_module "concat" "$CONCAT_TARBALL_URL"
download_puppet_module "stdlib" "$STDLIB_TARBALL_URL"
download_puppet_module "inifile" "$INIFILE_TARBALL_URL"
download_puppet_module "lvm" "$LVM_TARBALL_URL"