summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobrelia@mirantis.com>2015-04-16 14:42:08 +0200
committerBogdan Dobrelya <bdobrelia@mirantis.com>2015-04-16 14:44:25 +0200
commitfe5a1a828e147156ab201aecb7f18121d81b6201 (patch)
tree57a4beaa04c4dfc88e5e05975f3afe9cccc9d39a
parent1a3849bd98e94c750883efe4ec6290b4359efb89 (diff)
Syntax check fixes
Change-Id: I350559661a4bca8f9b6b748fd8906b795d6af078 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Bogdan Dobrelya <bdobrelia@mirantis.com> Workflow+1: Bogdan Dobrelya <bdobrelia@mirantis.com> Submitted-by: Jenkins Submitted-at: Fri, 17 Apr 2015 12:02:44 +0000 Reviewed-on: https://review.openstack.org/174357 Project: stackforge/fuel-plugin-ha-fencing Branch: refs/heads/master
-rw-r--r--deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp6
-rw-r--r--deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp4
2 files changed, 7 insertions, 3 deletions
diff --git a/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp b/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp
index f3c0375..f92dd98 100644
--- a/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp
+++ b/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp
@@ -33,7 +33,11 @@ define pcs_fencing::fencing (
33 'score' => '100', 33 'score' => '100',
34 'boolean' => '', 34 'boolean' => '',
35 'expressions' => [ 35 'expressions' => [
36 {'attribute'=>"#uname",'operation'=>'ne','value'=>$::pacemaker_hostname}, 36 {
37 'attribute'=> '#uname',
38 'operation'=>'ne',
39 'value'=>$::pacemaker_hostname,
40 },
37 ], 41 ],
38 }, 42 },
39 ], 43 ],
diff --git a/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp b/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp
index 7679b6a..5ac3182 100644
--- a/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp
+++ b/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp
@@ -8,10 +8,10 @@ class pcs_fencing::fencing_primitives (
8) { 8) {
9 case $::osfamily { 9 case $::osfamily {
10 'RedHat': { 10 'RedHat': {
11 $names = filter_hash($nodes, 'fqdn') 11 $names = filter_hash($nodes, 'fqdn')
12 } 12 }
13 'Debian': { 13 'Debian': {
14 $names = filter_hash($nodes, 'name') 14 $names = filter_hash($nodes, 'name')
15 } 15 }
16 default: { 16 default: {
17 fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian") 17 fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian")