Name: puppet-pacemaker
Owner: Example42
Description: Puppet module for Pacemaker
Created: 2013-12-13 12:36:56.0
Updated: 2016-05-12 10:55:31.0
Pushed: 2016-05-12 10:55:30.0
Homepage: null
Size: 17
Language: Puppet
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This module is no more actively maintained and will hardly be updated.
Please find an alternative module from other authors or consider Tiny Puppet as replacement.
If you want to maintain this module, contact Alessandro Franceschi
This module installs, manages and configures pacemaker.
The module is based on stdmod naming standards version 0.9.0.
Refer to http://github.com/stdmod/ for complete documentation on the common parameters.
To install the package provided by the module just include it:
include pacemaker
The main class arguments can be provided either via Hiera (from Puppet 3.x) or direct parameters:
class { 'pacemaker':
parameter => value,
}
The module provides also a generic define to manage any pacemaker configuration file:
pacemaker::conf { 'sample.conf':
content => '# Test',
}
A common way to use this module involves the management of the main configuration file via a custom template (provided in a custom site module):
class { 'pacemaker':
config_file_template => 'site/pacemaker/pacemaker.conf.erb',
}
You can write custom templates that use setting provided but the config_file_options_hash paramenter
class { 'pacemaker':
config_file_template => 'site/pacemaker/pacemaker.conf.erb',
config_file_options_hash => {
opt => 'value',
opt2 => 'value2',
},
}
Use custom source (here an array) for main configuration file. Note that template and source arguments are alternative.
class { 'pacemaker':
config_file_source => [ "puppet:///modules/site/pacemaker/pacemaker.conf-${hostname}" ,
"puppet:///modules/site/pacemaker/pacemaker.conf" ],
}
Use custom source directory for the whole configuration directory, where present.
class { 'pacemaker':
config_dir_source => 'puppet:///modules/site/pacemaker/conf/',
}
Use custom source directory for the whole configuration directory and purge all the local files that are not on the dir. Note: This option can be used to be sure that the content of a directory is exactly the same you expect, but it is desctructive and may remove files.
class { 'pacemaker':
config_dir_source => 'puppet:///modules/site/pacemaker/conf/',
config_dir_purge => true, # Default: false.
}
Use custom source directory for the whole configuration dir and define recursing policy.
class { 'pacemaker':
config_dir_source => 'puppet:///modules/site/pacemaker/conf/',
config_dir_recursion => false, # Default: true.
}
Provide an hash of files resources to be created with pacemaker::conf.
class { 'pacemaker':
conf_hash => {
'pacemaker.conf' => {
template => 'site/pacemaker/pacemaker.conf',
},
'pacemaker.other.conf' => {
template => 'site/pacemaker/pacemaker.other.conf',
},
},
}
Do not trigger a service restart when a config file changes.
class { 'pacemaker':
config_dir_notify => '', # Default: Service[pacemaker]
}
This is tested on these OS:
Pull requests (PR) and bug reports via GitHub are welcomed.
When submitting PR please follow these quidelines:
When submitting bug report please include or link: