summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobrelia@mirantis.com>2015-04-17 14:01:13 +0200
committerBogdan Dobrelya <bdobrelia@mirantis.com>2015-04-17 14:03:40 +0200
commit1e21a2251ad03bec546f4c9223ce04ce3b445940 (patch)
tree5132187bb9c97b680bde2759c9628b139df979e8
parentfe5a1a828e147156ab201aecb7f18121d81b6201 (diff)
Add license headers and docs for parameters
Change-Id: Id574e79d21239d4a6f3954d101f0cced66dd4073 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:04:22 +0000 Reviewed-on: https://review.openstack.org/174838 Project: stackforge/fuel-plugin-ha-fencing Branch: refs/heads/master
-rw-r--r--deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp34
-rw-r--r--deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp34
2 files changed, 65 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 f92dd98..bb3a8bc 100644
--- a/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp
+++ b/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp
@@ -1,6 +1,38 @@
1# Copyright 2013 Mirantis, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14#
1# == Define: pcs_fencing::fencing 15# == Define: pcs_fencing::fencing
2# 16#
3# Configure STONITH resources for corosync/pacemaker. 17# Configure STONITH resources for Pacemaker.
18#
19# === Parameters:
20#
21# [*agent_type*]
22# The fence agent name for a STONITH resource
23# Defaults to undef
24#
25# [*parameters*]
26# The hash of parameters for a STONITH resource
27# Defaults to False
28#
29# [*operations*]
30# The hash of operations for a STONITH resource
31# Defaults to False
32#
33# [*meta*]
34# The hash of metadata for a STONITH resource
35# Defaults to False
4# 36#
5define pcs_fencing::fencing ( 37define pcs_fencing::fencing (
6 $agent_type, 38 $agent_type,
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 5ac3182..abd9de3 100644
--- a/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp
+++ b/deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp
@@ -1,5 +1,35 @@
1# Creates fencing primitives and topology for given nodes. 1# Copyright 2013 Mirantis, Inc.
2# Assumes all nodes have the same OS installed 2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14#
15# == Class: pcs_fencing::fencing_primitives
16#
17# Creates Pacemaker fencing primitives and topology for given nodes.
18# Assumes all nodes have the same OS installed.
19#
20# === Parameters:
21#
22# [*fence_primitives*]
23# The hash of parameters for STONITH resources in Pacemaker
24# Defaults to undef
25#
26# [*fence_topology*]
27# The hash of parameters for a fencing topology in Pacemaker
28# Defaults to undef
29#
30# [*node*]
31# The array of node names in Pacemaker cluster
32# Defaults to undef
3# 33#
4class pcs_fencing::fencing_primitives ( 34class pcs_fencing::fencing_primitives (
5 $fence_primitives, 35 $fence_primitives,