Install Curator from RPM on CentOS/RHEL
Change-Id: Ie6530525e62ca4b44dba06c5aa354ecd4dc504f0
(cherry picked from commit 3185bc745d
)
This commit is contained in:
parent
870fc7b628
commit
a3b4b9b8eb
|
@ -111,10 +111,27 @@ class midonet::analytics (
|
||||||
require => Class['::logstash','::elasticsearch']
|
require => Class['::logstash','::elasticsearch']
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'curator':
|
if $::osfamily == 'Debian' {
|
||||||
version => $curator_version,
|
anchor { 'curator-begin': } ->
|
||||||
|
class { 'curator':
|
||||||
|
version => $curator_version,
|
||||||
|
} ->
|
||||||
|
anchor { 'curator-end': }
|
||||||
|
} elsif $::osfamily == 'RedHat' {
|
||||||
|
anchor { 'curator-begin': } ->
|
||||||
|
exec { 'rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch':
|
||||||
|
path => '/usr/bin'
|
||||||
|
} ->
|
||||||
|
yumrepo { 'curator-3':
|
||||||
|
descr => 'CentOS/RHEL repository for Elasticsearch Curator 3 packages',
|
||||||
|
baseurl => 'http://packages.elastic.co/curator/3/centos/$releasever',
|
||||||
|
gpgcheck => true,
|
||||||
|
gpgkey => 'http://packages.elastic.co/GPG-KEY-elasticsearch',
|
||||||
|
enabled => true,
|
||||||
|
} ->
|
||||||
|
package { 'python-elasticsearch-curator': ensure => installed } ->
|
||||||
|
anchor { 'curator-end': }
|
||||||
}
|
}
|
||||||
contain curator
|
|
||||||
|
|
||||||
if $is_mem {
|
if $is_mem {
|
||||||
if $manage_repo == true {
|
if $manage_repo == true {
|
||||||
|
@ -135,8 +152,11 @@ class midonet::analytics (
|
||||||
|
|
||||||
class { 'midonet::analytics::services':
|
class { 'midonet::analytics::services':
|
||||||
calliope_port => $calliope_port,
|
calliope_port => $calliope_port,
|
||||||
require => [Class['::logstash','::elasticsearch','::curator'],
|
require => [
|
||||||
Elasticsearch::Instance['es-01']]
|
Class['::logstash','::elasticsearch'],
|
||||||
|
Elasticsearch::Instance['es-01'],
|
||||||
|
Anchor['curator-end']
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
unless $allinone {
|
unless $allinone {
|
||||||
|
|
Loading…
Reference in New Issue