7117b6cfd4
This change removes missed ocf scripts from deployment/ and moves any still referenced files to files/fuel-ha-utils. Also cleans up commented out ocf files from the puppet code. Change-Id: Ie6bd1bae40fab175aff14274026bf506f28eb0e4 Related-Bug: 1457441
60 lines
1.3 KiB
Puppet
60 lines
1.3 KiB
Puppet
# == Class: cluster::dns_ocf
|
|
#
|
|
# Configure OCF service for DNS managed by corosync/pacemaker
|
|
#
|
|
class cluster::dns_ocf ( $primary_controller ) {
|
|
$service_name = 'p_dns'
|
|
|
|
if $primary_controller {
|
|
cs_resource { $service_name:
|
|
ensure => present,
|
|
primitive_class => 'ocf',
|
|
provided_by => 'fuel',
|
|
primitive_type => 'ns_dns',
|
|
complex_type => 'clone',
|
|
ms_metadata => {
|
|
'interleave' => 'true',
|
|
},
|
|
metadata => {
|
|
'migration-threshold' => '3',
|
|
'failure-timeout' => '120',
|
|
},
|
|
parameters => {
|
|
'ns' => 'vrouter',
|
|
},
|
|
operations => {
|
|
'monitor' => {
|
|
'interval' => '20',
|
|
'timeout' => '10'
|
|
},
|
|
'start' => {
|
|
'timeout' => '30'
|
|
},
|
|
'stop' => {
|
|
'timeout' => '30'
|
|
},
|
|
},
|
|
} ->
|
|
|
|
cs_rsc_colocation { 'dns-with-vrouter-ns':
|
|
ensure => present,
|
|
score => 'INFINITY',
|
|
primitives => [
|
|
"clone_${service_name}",
|
|
"clone_p_vrouter"
|
|
],
|
|
}
|
|
|
|
Cs_resource[$service_name] ~> Service[$service_name]
|
|
}
|
|
|
|
service { $service_name:
|
|
name => $service_name,
|
|
enable => true,
|
|
ensure => 'running',
|
|
hasstatus => true,
|
|
hasrestart => true,
|
|
provider => 'pacemaker',
|
|
}
|
|
}
|