diff --git a/scripts/clmc-agent/install.sh b/scripts/clmc-agent/install.sh index 21d46b1d0918836ec3c94c20d76fdf9bf3407408..91bf2504d8ea91f00bf37300a17c54995a311387 100755 --- a/scripts/clmc-agent/install.sh +++ b/scripts/clmc-agent/install.sh @@ -27,14 +27,17 @@ # Force fail on command fail set -euo pipefail -echo "Configuring Telegraf agent" +echo "Installing Telegraf agent" + +TELEGRAF_VERSION=1.6.2-1 +TELEGRAF_CHECKSUM=dc24932fa1aef9392582880c077dd2493b9f2c66babd7733a0654540bbb5003b # Install telegraf -wget https://dl.influxdata.com/telegraf/releases/telegraf_1.3.2-1_amd64.deb -sha1sum telegraf_1.3.2-1_amd64.deb | grep '73794cc2986fef7c81cfff8bc638cd84d6629da8' &> /dev/null +wget https://dl.influxdata.com/telegraf/releases/telegraf_${TELEGRAF_VERSION}_amd64.deb 2> /dev/null +sha256sum telegraf_${TELEGRAF_VERSION}_amd64.deb | grep $TELEGRAF_CHECKSUM > /dev/null if [ $? == 1 ]; then - echo "telegraf download failed sha1sum check" - exit + echo "Telegraf download failed checksum" + exit 1 fi -dpkg -i telegraf_1.3.2-1_amd64.deb +dpkg -i telegraf_${TELEGRAF_VERSION}_amd64.deb diff --git a/scripts/clmc-service/install.sh b/scripts/clmc-service/install.sh index bf262be5034371268ebbb483f1cc8710fe581289..900c9433aed8c55c1d936b2b5f8c2e146ce3f918 100755 --- a/scripts/clmc-service/install.sh +++ b/scripts/clmc-service/install.sh @@ -27,37 +27,46 @@ # Force fail on command fail set -euo pipefail +# Define tickstack software versions +INFLUX_VERSION=1.5.2 +INFLUX_CHECKSUM=42fede7b497bdf30d4eb5138db218d1add986fca4fce4a8bcd9c7d6dabaf572a + +KAPACITOR_VERSION=1.4.1 +KAPACITOR_CHECKSUM=eea9b215f241906570eafe3857e1d4c5 + +CHRONOGRAF_VERSION=1.4.4.2 +CHRONOGRAF_CHECKSUM=eea6915aa6db8f134fcd3b095e863b773bfb3a16a26e346dd65904a07df97963 # install python for the simulator apt-get update apt-get -y install python # install influx -wget https://dl.influxdata.com/influxdb/releases/influxdb_1.2.4_amd64.deb -sha1sum influxdb_1.2.4_amd64.deb | grep 'e77522b65a582787b0d61b90d355284bb2683258' &> /dev/null +wget https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUX_VERSION}_amd64.deb 2> /dev/null +sha256sum influxdb_${INFLUX_VERSION}_amd64.deb | grep $INFLUX_CHECKSUM > /dev/null if [ $? == 1 ]; then - echo "influx download failed sha1sum check" - exit + echo "influx download failed checksum" + exit 1 fi -dpkg -i influxdb_1.2.4_amd64.deb +dpkg -i influxdb_${INFLUX_VERSION}_amd64.deb # install kapacitor -wget https://dl.influxdata.com/kapacitor/releases/kapacitor_1.3.1_amd64.deb -sha1sum kapacitor_1.3.1_amd64.deb | grep '5ae1ead9904ea651e72b181848c2e84338eb88b4' &> /dev/null +wget https://dl.influxdata.com/kapacitor/releases/kapacitor_${KAPACITOR_VERSION}_amd64.deb 2> /dev/null +md5sum kapacitor_${KAPACITOR_VERSION}_amd64.deb | grep $KAPACITOR_CHECKSUM > /dev/null if [ $? == 1 ]; then - echo "Kapacitor download failed sha1sum check" - exit + echo "Kapacitor download failed checksum" + exit 1 fi -dpkg -i kapacitor_1.3.1_amd64.deb +dpkg -i kapacitor_${KAPACITOR_VERSION}_amd64.deb # install Chronograf -wget https://dl.influxdata.com/chronograf/releases/chronograf_1.3.3.0_amd64.deb -sha1sum chronograf_1.3.3.0_amd64.deb | grep '9b567598c078ba1ad73dd587d7f32163e0886471' &> /dev/null +wget https://dl.influxdata.com/chronograf/releases/chronograf_${CHRONOGRAF_VERSION}_amd64.deb 2> /dev/null +sha256sum chronograf_${CHRONOGRAF_VERSION}_amd64.deb | grep $CHRONOGRAF_CHECKSUM > /dev/null if [ $? == 1 ]; then - echo "Chronograf download failed sha1sum check" - exit + echo "Chronograf download failed checksum" + exit 1 fi -dpkg -i chronograf_1.3.3.0_amd64.deb +dpkg -i chronograf_${CHRONOGRAF_VERSION}_amd64.deb systemctl start influxdb systemctl start kapacitor