Install Curator from RPM in MidoNet element

Due to some changes needed in the RDO side we refactored some code at
openstack/puppet-midonet so Elasticsearch Curator is installed from
their Yum repositories instead of it being installed with Pip.

See:
- https://bugzilla.redhat.com/show_bug.cgi?id=1403753
- https://review.openstack.org/#/c/409862/
- https://review.rdoproject.org/r/#/c/4053/

Change-Id: Ie7501ab0f6949e149b15791b9d3ba9d6370a6b00
This commit is contained in:
Alejandro Andreu 2016-12-13 17:27:35 +01:00
parent a0f82613ea
commit 164632aa19
5 changed files with 12 additions and 7 deletions

View File

@ -21,6 +21,8 @@ LOGSTASH_REPOS_FILE=logstash
LOGSTASH_TARGET_FILE_NAME=logstash.repo
LLPD_REPOS_FILE=vbernat-llpd
LLPD_TARGET_FILE_NAME=vbernat-llpd.repo
CURATOR_REPOS_FILE=curator
CURATOR_TARGET_FILE_NAME=curator.repo
mkdir -p $MIDONET_REPOS_DIR
@ -32,11 +34,13 @@ mapfile -c 1 -C subst < $TMP_HOOKS_PATH/extra-data.d/$DATASTAX_REPOS_FILE > /tmp
mapfile -c 1 -C subst < $TMP_HOOKS_PATH/extra-data.d/$ELASTICSEARCH_REPOS_FILE > /tmp/repo-elasticsearch
mapfile -c 1 -C subst < $TMP_HOOKS_PATH/extra-data.d/$LOGSTASH_REPOS_FILE > /tmp/repo-logstash
mapfile -c 1 -C subst < $TMP_HOOKS_PATH/extra-data.d/$LLPD_REPOS_FILE > /tmp/repo-llpd
mapfile -c 1 -C subst < $TMP_HOOKS_PATH/extra-data.d/$CURATOR_REPOS_FILE > /tmp/repo-curator
sudo mv /tmp/repo-midonet $MIDONET_REPOS_DIR/$MIDONET_TARGET_FILE_NAME
sudo mv /tmp/repo-cassandra $MIDONET_REPOS_DIR/$DATASTAX_TARGET_FILE_NAME
sudo mv /tmp/repo-elasticsearch $MIDONET_REPOS_DIR/$ELASTICSEARCH_TARGET_FILE_NAME
sudo mv /tmp/repo-logstash $MIDONET_REPOS_DIR/$LOGSTASH_TARGET_FILE_NAME
sudo mv /tmp/repo-llpd $MIDONET_REPOS_DIR/$LLPD_TARGET_FILE_NAME
sudo mv /tmp/repo-curator $MIDONET_REPOS_DIR/$CURATOR_TARGET_FILE_NAME
exit 0

View File

@ -0,0 +1,6 @@
[curator-3]
name=CentOS/RHEL 7 repository for Elasticsearch Curator 3.x packages
baseurl=https://packages.elastic.co/curator/3/centos/7
gpgcheck=1
gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1

View File

@ -1,7 +0,0 @@
#!/bin/bash
set -e
yum install -y python-pip && pip install -U elasticsearch-curator==3.5
exit 0

View File

@ -2,6 +2,7 @@ augeas_package
augeasdevel_package
biosdevname
cassandra_package
curator_package
deltarpm_package
midonet_cli_package
midonet_cluster_package

View File

@ -4,6 +4,7 @@
"augeasdevel_package": "augeas-devel",
"biosdevname": "biosdevname",
"cassandra_package": "cassandra22",
"curator_package": "python-elasticsearch-curator"
"deltarpm_package": "deltarpm",
"midonet_cli_package": "python-midonetclient",
"midonet_cluster_package": "midonet-cluster",