Puppet Class: pacemaker::params
- Defined in:
- manifests/params.pp
Overview
Class: pacemaker::params
Variables used by classes in the module
Dependencies
None
Authors
Crag Wolfe <cwolfe@redhat.com>
Jason Guiditta <jguiditt@redhat.com>
Copyright
Copyright © 2016 Red Hat Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'manifests/params.pp', line 30
class pacemaker::params {
$hacluster_pwd = 'CHANGEME'
case downcase($::facts['os']['family']) {
'redhat': {
$pcs_bin = '/sbin/pcs'
$pcsd_sysconfig = '/etc/sysconfig/pcsd'
$pcmk_sysconfig = '/etc/sysconfig/pacemaker'
$package_list = ['pacemaker','pcs','fence-agents-all','pacemaker-libs']
$pcsd_mode = true
$services_manager = 'systemd'
# Starting with 7.3 we have a separate pacemaker-remote package
if (versioncmp($::os['release']['full'], '7.2') < 1) {
$pcmk_remote_package_list = ['pacemaker','pcs','fence-agents-all','pacemaker-libs']
} else {
$pcmk_remote_package_list = ['pacemaker','pcs','fence-agents-all','pacemaker-libs', 'pacemaker-remote']
}
# Detect pcs 0.10.x versions and use different commands
if (versioncmp($::os['release']['full'], '8.0') > 0) {
$pcs_010 = true
} else {
$pcs_010 = false
}
$service_name = 'pacemaker'
}
default: {
fail("Unsupported platform: ${::os['family']}")
}
}
}
|