b18985d8a9
Partial sync from upstream puppetlabs-corosync v 0.6.0 for corosync 2 support Fuel-ci: disable related blueprint corosync-2 Change-Id: I3700edaff004d287396286f3d86ed211acc8fab1
45 lines
1.1 KiB
Puppet
45 lines
1.1 KiB
Puppet
# == Define: corosync::service
|
|
#
|
|
# Models a Corosync service. Corosync services are plugins that provide
|
|
# functionality for monitoring cluster resources. One of the most common
|
|
# of these plugins being Pacemaker.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*namevar*]
|
|
# The namevar in this type is the title you give it when you define a resource
|
|
# instance. It is used for a handful of purposes; defining the name of the
|
|
# config file and the name defined inside the file itself.
|
|
#
|
|
# [*version*]
|
|
# Version of the protocol used by this service.
|
|
#
|
|
# === Examples
|
|
#
|
|
# Provide some examples on how to use this type:
|
|
#
|
|
# corosync::service { 'pacemaker':
|
|
# version => '0',
|
|
# }
|
|
#
|
|
# === Authors
|
|
#
|
|
# Cody Herriges <cody@puppetlabs.com>
|
|
#
|
|
# === Copyright
|
|
#
|
|
# Copyright 2012 Puppet Labs, LLC.
|
|
#
|
|
define corosync::service($version) {
|
|
|
|
file { "/etc/corosync/service.d/${name}":
|
|
ensure => file,
|
|
content => template("${module_name}/service.erb"),
|
|
mode => '0644',
|
|
owner => 'root',
|
|
group => 'root',
|
|
require => Package['corosync'],
|
|
notify => Service['corosync'],
|
|
}
|
|
}
|