Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125201
params.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
params.pp
View Options
# == Class: elasticsearch::params
#
# This class exists to
# 1. Declutter the default value assignment for class parameters.
# 2. Manage internally used module variables in a central place.
#
# Therefore, many operating system dependent differences (names, paths, ...)
# are addressed in here.
#
#
# === Parameters
#
# This class does not provide any parameters.
#
#
# === Examples
#
# This class is not intended to be used directly.
#
#
# === Links
#
# * {Puppet Docs: Using Parameterized Classes}[http://j.mp/nVpyWY]
#
#
# === Authors
#
# * Richard Pijnenburg <mailto:richard@ispavailability.com>
#
class
elasticsearch
::
params
{
#### Default values for the parameters of the main module class, init.pp
# ensure
$ensure
=
'present'
# autoupgrade
$autoupgrade
=
false
# restart on configuration change?
$restart_on_change
=
true
# service status
$status
=
'enabled'
# configuration directory
$confdir
=
'/etc/elasticsearch'
#### Internal module values
# packages
case
$::operatingsystem
{
'CentOS'
,
'Fedora'
,
'Scientific'
,
'RedHat'
,
'Amazon'
:
{
# main application
$package
=
[
'elasticsearch'
]
}
'Debian'
,
'Ubuntu'
:
{
# main application
$package
=
[
'elasticsearch'
]
}
default
:
{
fail
(
"\"
${module_name}\"
provides
no
package
default
value
for
\
"${::operatingsystem}\"")
}
}
# service parameters
case $::operatingsystem {
'CentOS', 'Fedora', 'Scientific', 'RedHat', 'Amazon': {
$service_name = 'elasticsearch'
$service_hasrestart = true
$service_hasstatus = true
$service_pattern = $service_name
$service_provider = 'redhat'
}
'Debian', 'Ubuntu': {
$service_name = 'elasticsearch'
$service_hasrestart = true
$service_hasstatus = true
$service_pattern = $service_name
$service_provider = 'debian'
}
default: {
fail("
\
"${module_name}\"
provides
no
service
parameters
for
\
"${::operatingsystem}\"
"
)
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Jun 21, 8:14 PM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3358071
Attached To
R150 puppet-elastic-elasticsearch
Event Timeline
Log In to Comment