dev/provisioning/modules/sysconfig/manifests/elasticsearch.pp
author ymh <ymh.work@gmail.com>
Tue, 19 Jan 2016 19:18:34 +0100
changeset 109 d22ed5792f8e
parent 28 b0b56e0f8c7f
child 406 cf0f23803a53
permissions -rw-r--r--
Correct transaction management. cf. bug https://openrdf.atlassian.net/browse/SES-2295 and tomcat default management of PUT request with form data (application/x-www-form-urlencoded encoded)

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: }
}