Browse Source

Add license headers and docs for parameters

Change-Id: Id574e79d21239d4a6f3954d101f0cced66dd4073
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Bogdan Dobrelya 4 years ago
parent
commit
1e21a2251a

+ 33
- 1
deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing.pp View File

@@ -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 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
 #
5 37
 define pcs_fencing::fencing (
6 38
   $agent_type,

+ 32
- 2
deployment_scripts/puppet/modules/pcs_fencing/manifests/fencing_primitives.pp View File

@@ -1,5 +1,35 @@
1
-# Creates fencing primitives and topology for given nodes.
2
-# Assumes all nodes have the same OS installed
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
+#
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
 #
4 34
 class pcs_fencing::fencing_primitives (
5 35
   $fence_primitives,

Loading…
Cancel
Save