125a0ad602
Configure a VIP and Corosync/Pacemaker cluster. The plugin must override Hiera data to set explicitly the corosync node list. Configure Elasticsearch instances with parameters: * cluster.name * unicast discovery Add firewall rule to allow clustering traffic. Implements: elasticsearch-clustering Change-Id: I0636e02113bfdacc776beb20c08cc88308486c29
50 lines
3.0 KiB
Bash
Executable File
50 lines
3.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
. "$(dirname "$(readlink -f "$0")")"/functions.sh
|
|
|
|
# Puppet manifests
|
|
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"
|
|
NGINX_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/jfryman-nginx-0.2.2.tar.gz"
|
|
ELASTICSEARCH_TARBALL_URL="https://forgeapi.puppetlabs.com/v3/files/elasticsearch-elasticsearch-0.9.1.tar.gz"
|
|
FUEL_LIB_COMMIT="7.0"
|
|
FUEL_LIB_TARBALL_URL="https://github.com/openstack/fuel-library/archive/${FUEL_LIB_COMMIT}.tar.gz"
|
|
|
|
# Kibana 3 sources
|
|
KIBANA_TARBALL_URL="https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.tar.gz"
|
|
|
|
# Packages needed to install JRE headless
|
|
download_package http://mirrors.kernel.org/ubuntu/pool/main/p/pcsc-lite/libpcsclite1_1.8.10-1ubuntu1_amd64.deb \
|
|
http://mirrors.kernel.org/ubuntu/pool/main/j/java-common/java-common_0.51_all.deb \
|
|
http://security.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata-java_2015g-0ubuntu0.14.04_all.deb \
|
|
http://security.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2015g-0ubuntu0.14.04_all.deb \
|
|
http://security.ubuntu.com/ubuntu/pool/main/c/ca-certificates/ca-certificates_20141019ubuntu0.14.04.1_all.deb \
|
|
http://mirrors.kernel.org/ubuntu/pool/main/c/ca-certificates-java/ca-certificates-java_20130815ubuntu1_all.deb \
|
|
http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-7/openjdk-7-jre-headless_7u91-2.6.3-0ubuntu0.14.04.1_amd64.deb \
|
|
http://mirrors.kernel.org/ubuntu/pool/main/c/ca-certificates-java/ca-certificates-java_20130815ubuntu1_all.deb \
|
|
https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.deb
|
|
|
|
# Download curator and dependencies
|
|
download_package http://packages.elasticsearch.org/curator/3/debian/pool/main/p/python/python-elasticsearch-curator_3.3.0_all.deb \
|
|
http://packages.elasticsearch.org/curator/3/debian/pool/main/p/python/python-elasticsearch_1.6.0_all.deb \
|
|
http://packages.elasticsearch.org/curator/3/debian/pool/main/p/python/python-click_4.0_all.deb \
|
|
http://packages.elasticsearch.org/curator/3/debian/pool/main/p/python/python-urllib3_1.10.4_all.deb
|
|
|
|
# Install puppet manifests
|
|
download_puppet_module "concat" "$CONCAT_TARBALL_URL"
|
|
download_puppet_module "stdlib" "$STDLIB_TARBALL_URL"
|
|
download_puppet_module "nginx" "$NGINX_TARBALL_URL"
|
|
download_puppet_module "elasticsearch" "$ELASTICSEARCH_TARBALL_URL"
|
|
|
|
# Untar kibana
|
|
KIBANA_FOLDER="${MODULES_DIR}/lma_logging_analytics/files/kibana/src"
|
|
mkdir -p "${KIBANA_FOLDER}"
|
|
wget -qO- "${KIBANA_TARBALL_URL}" | tar -C "${KIBANA_FOLDER}" --strip-components=1 -xz
|
|
|
|
# Extract dependent manifests from fuel-library
|
|
rm -rf "${MODULES_DIR:?}"/{l23network,osnailyfacter,cluster,pacemaker_wrappers,pacemaker,openstack}
|
|
wget -qO- "${FUEL_LIB_TARBALL_URL}" | \
|
|
tar -C "${MODULES_DIR}" --strip-components=3 -zxvf - \
|
|
fuel-library-${FUEL_LIB_COMMIT}/deployment/puppet/{l23network,osnailyfacter,cluster,pacemaker_wrappers,pacemaker,openstack}
|