Skip to content

Commit 2dfdf03

Browse files
committed
Parameterized version numbers
1 parent 4caeba0 commit 2dfdf03

13 files changed

+51
-29
lines changed

env.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,21 @@
22
BASE_PATH=$(pwd)
33

44
export DEBIAN_FRONTEND=noninteractive
5+
6+
GRAFANA_VERSION=1.7.0
7+
8+
FLUME_VERSION=1.5.0
9+
10+
ZK_VERSION=3.4.6
11+
HBASE_VERSION=0.98.5
12+
13+
KIBANA_VERSION=3.1.0
14+
ELASTICSEARCH_BRANCH=1.3
15+
LOGSTASH_BRANCH=1.4
16+
17+
FLAPJACK_BRANCH=v1
18+
19+
GRAYLOG_VERSION=0.20.6
20+
GRAYLOG_STREAM_DASHBOARD_VERSION=0.90.0
21+
22+
HEKA_VERSION=0.7.1

install-elasticsearch.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
##
88
set -eux
99

10+
source env.sh
11+
1012
curl -s http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
11-
echo "deb http://packages.elasticsearch.org/elasticsearch/1.0/debian stable main" > /etc/apt/sources.list.d/elasticsearch.list
13+
echo "deb http://packages.elasticsearch.org/elasticsearch/${ELASTICSEARCH_BRANCH}/debian stable main" > /etc/apt/sources.list.d/elasticsearch.list
1214

1315
apt-get update -q
1416
apt-get install -yq elasticsearch openjdk-7-jre-headless

install-flapjack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -eux
1414
source env.sh
1515

1616
apt-key adv --keyserver keys.gnupg.net --recv 803709B6
17-
echo "deb http://packages.flapjack.io/deb/v1 trusty main" > /etc/apt/sources.list.d/flapjack.list
17+
echo "deb http://packages.flapjack.io/deb/${FLAPJACK_BRANCH} trusty main" > /etc/apt/sources.list.d/flapjack.list
1818

1919
apt-get update -q
2020
apt-get install -yq flapjack

install-flume.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ apt-get install -yq openjdk-7-jre-headless
2626
# Install Flume
2727
cd /tmp
2828

29-
curl -sOL http://apache.osuosl.org/flume/1.5.0/apache-flume-1.5.0-bin.tar.gz
30-
tar xf apache-flume-1.5.0-bin.tar.gz
31-
mv apache-flume-1.5.0-bin /opt/flume
29+
curl -sOL http://apache.osuosl.org/flume/${FLUME_VERSION}/apache-flume-${FLUME_VERSION}-bin.tar.gz
30+
tar xf apache-flume-${FLUME_VERSION}-bin.tar.gz
31+
mv apache-flume-${FLUME_VERSION}-bin /opt/flume
3232

3333
# Copy libraries necessary for the Elasticsearch sink
3434
cp /usr/share/elasticsearch/lib/lucene-* /opt/flume/lib

install-grafana.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ source env.sh
1717

1818
cd /tmp
1919

20-
curl -sOL http://grafanarel.s3.amazonaws.com/grafana-1.7.0.tar.gz
21-
tar xf grafana-1.7.0.tar.gz
22-
cp -R grafana-1.7.0 /usr/share/grafana
20+
curl -sOL http://grafanarel.s3.amazonaws.com/grafana-${GRAFANA_VERSION}.tar.gz
21+
tar xf grafana-${GRAFANA_VERSION}.tar.gz
22+
cp -R grafana-${GRAFANA_VERSION} /usr/share/grafana
2323

2424
cp $BASE_PATH/usr/share/grafana/config.js /usr/share/grafana
2525

install-graylog2-server.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ useradd -s /bin/false -d /var/lib/graylog2 -m graylog2
2626
mkdir -p /var/log/graylog2
2727
chown graylog2:graylog2 /var/log/graylog2
2828

29-
curl -sOL https://github.com/Graylog2/graylog2-server/releases/download/0.20.6/graylog2-server-0.20.6.tgz
30-
tar xf graylog2-server-0.20.6.tgz
31-
cp -R graylog2-server-0.20.6 /usr/share/graylog2-server
29+
curl -sOL https://github.com/Graylog2/graylog2-server/releases/download/${GRAYLOG_VERSION}/graylog2-server-${GRAYLOG_VERSION}.tgz
30+
tar xf graylog2-server-${GRAYLOG_VERSION}.tgz
31+
cp -R graylog2-server-${GRAYLOG_VERSION} /usr/share/graylog2-server
3232

3333
mkdir -p /etc/graylog2
3434

install-graylog2-stream-dashboard.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ source env.sh
1616

1717
cd /tmp
1818

19-
curl -sOL https://github.com/Graylog2/graylog2-stream-dashboard/releases/download/0.90/graylog2-stream-dashboard-0.90.0.tgz
20-
tar xf graylog2-stream-dashboard-0.90.0.tgz
21-
cp -R graylog2-stream-dashboard-0.90.0 /usr/share/graylog2-stream-dashboard
19+
curl -sOL https://github.com/Graylog2/graylog2-stream-dashboard/releases/download/0.90/graylog2-stream-dashboard-${GRAYLOG_STREAM_DASHBOARD_VERSION}.tgz
20+
tar xf graylog2-stream-dashboard-${GRAYLOG_STREAM_DASHBOARD_VERSION}.tgz
21+
cp -R graylog2-stream-dashboard-${GRAYLOG_STREAM_DASHBOARD_VERSION} /usr/share/graylog2-stream-dashboard
2222

2323
apt-get install -yq apache2
2424

install-graylog2-web.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ useradd -s /bin/false -d /var/lib/graylog2 -m graylog2
2121
mkdir -p /var/log/graylog2
2222
chown graylog2:graylog2 /var/log/graylog2
2323

24-
curl -sOL https://github.com/Graylog2/graylog2-web-interface/releases/download/0.20.6/graylog2-web-interface-0.20.6.tgz
25-
tar xf graylog2-web-interface-0.20.6.tgz
26-
cp -R graylog2-web-interface-0.20.6 /usr/share/graylog2-web-interface
24+
curl -sOL https://github.com/Graylog2/graylog2-web-interface/releases/download/${GRAYLOG_VERSION}/graylog2-web-interface-${GRAYLOG_VERSION}.tgz
25+
tar xf graylog2-web-interface-${GRAYLOG_VERSION}.tgz
26+
cp -R graylog2-web-interface-${GRAYLOG_VERSION} /usr/share/graylog2-web-interface
2727

2828
mkdir -p /etc/graylog2
2929

install-hbase.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ apt-get install -yq openjdk-7-jre-headless supervisor
2323
# Install HBase
2424
cd /tmp
2525

26-
curl -sOL http://apache.osuosl.org/hbase/hbase-0.98.5/hbase-0.98.5-hadoop2-bin.tar.gz
27-
tar xf hbase-0.98.5-hadoop2-bin.tar.gz
28-
mv hbase-0.98.5-hadoop2 /opt/hbase
26+
curl -sOL http://apache.osuosl.org/hbase/hbase-${HBASE_VERSION}/hbase-${HBASE_VERSION}-hadoop2-bin.tar.gz
27+
tar xf hbase-${HBASE_VERSION}-hadoop2-bin.tar.gz
28+
mv hbase-${HBASE_VERSION}-hadoop2 /opt/hbase
2929

3030
# Configure HBase
3131
cp $BASE_PATH/opt/hbase/conf/* $HBASE_PREFIX/conf

install-heka.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ source env.sh
99

1010
cd /tmp
1111

12-
curl -sOL https://github.com/mozilla-services/heka/releases/download/v0.7.1/heka_0.7.1_amd64.deb
13-
dpkg -i heka_0.7.1_amd64.deb
12+
curl -sOL https://github.com/mozilla-services/heka/releases/download/v${HEKA_VERSION}/heka_${HEKA_VERSION}_amd64.deb
13+
dpkg -i heka_${HEKA_VERSION}_amd64.deb
1414

1515
useradd -d /var/cache/hekad -m hekad
1616

0 commit comments

Comments
 (0)