Sha256: 1a7830693e3f81d852903e1badb26d2a0baf8c46c4b496d97c2704da1d8ae43d
Contents?: true
Size: 1.49 KB
Versions: 6
Compression:
Stored size: 1.49 KB
Contents
# == Class: elasticsearch::config # # This class exists to coordinate all configuration related actions, # functionality and logical units in a central place. # # # === Parameters # # This class does not provide any parameters. # # # === Examples # # This class may be imported by other classes to use its functionality: # class { 'elasticsearch::config': } # # It is not intended to be used directly by external resources like node # definitions or other modules. # # # === Authors # # * Richard Pijnenburg <mailto:richard@ispavailability.com> # class elasticsearch::config { include elasticsearch Exec { path => [ '/bin', '/usr/bin', '/usr/local/bin' ], cwd => '/', } $settings = $elasticsearch::config $notify_elasticsearch = $elasticsearch::restart_on_change ? { false => undef, default => Class['elasticsearch::service'], } file { $elasticsearch::confdir: ensure => directory, owner => 'root', group => 'root', mode => '0644', } file { "${elasticsearch::confdir}/elasticsearch.yml": ensure => file, content => template("${module_name}/etc/elasticsearch/elasticsearch.yml.erb"), owner => 'root', group => 'root', mode => '0644', require => [ Class['elasticsearch::package'], File[$elasticsearch::confdir] ], notify => $notify_elasticsearch, } exec { 'mkdir_templates': command => "mkdir -p ${elasticsearch::confdir}/templates_import", creates => "${elasticsearch::confdir}/templates_import" } }
Version data entries
6 entries across 6 versions & 1 rubygems