dev/provisioning/modules/sysconfig/manifests/elasticsearch.pp
author nowmad@23.1.168.192.in-addr.arpa
Fri, 22 Jan 2016 11:14:11 +0100
changeset 96 719390899adf
parent 28 b0b56e0f8c7f
child 406 cf0f23803a53
permissions -rw-r--r--
add action helper on "thematique" click or input enter to set the "thematique" parameter

class sysconfig::elasticsearch (
    $es_host     = hiera('sysconfig::params::es_host', $sysconfig::params::es_host),
    $es_port     = hiera('sysconfig::params::es_port', $sysconfig::params::es_port),
    $es_instance = hiera('sysconfig::params::es_instance', $sysconfig::params::es_instance),
) inherits sysconfig::params {

    notify {'elasticsearch': name => "\$es_host : ${es_host}, \$es_port : ${es_port}, \$es_instance : ${es_instance}", withpath => true }


    class { '::elasticsearch':
      manage_repo  => true,
      autoupgrade => true,
      repo_version => '2.x',
    }->
    elasticsearch::instance { $es_instance: }
}