From 1e21a2251ad03bec546f4c9223ce04ce3b445940 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Fri, 17 Apr 2015 14:01:13 +0200 Subject: [PATCH] Add license headers and docs for parameters Change-Id: Id574e79d21239d4a6f3954d101f0cced66dd4073 Signed-off-by: Bogdan Dobrelya --- .../modules/pcs_fencing/manifests/fencing.pp | 34 ++++++++++++++++++- .../manifests/fencing_primitives.pp | 34 +++++++++++++++++-- 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 @@ +# Copyright 2013 Mirantis, 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. +# # == Define: pcs_fencing::fencing # -# Configure STONITH resources for corosync/pacemaker. +# Configure STONITH resources for Pacemaker. +# +# === Parameters: +# +# [*agent_type*] +# The fence agent name for a STONITH resource +# Defaults to undef +# +# [*parameters*] +# The hash of parameters for a STONITH resource +# Defaults to False +# +# [*operations*] +# The hash of operations for a STONITH resource +# Defaults to False +# +# [*meta*] +# The hash of metadata for a STONITH resource +# Defaults to False # define pcs_fencing::fencing ( $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 @@ -# Creates fencing primitives and topology for given nodes. -# Assumes all nodes have the same OS installed +# Copyright 2013 Mirantis, 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. +# +# == Class: pcs_fencing::fencing_primitives +# +# Creates Pacemaker fencing primitives and topology for given nodes. +# Assumes all nodes have the same OS installed. +# +# === Parameters: +# +# [*fence_primitives*] +# The hash of parameters for STONITH resources in Pacemaker +# Defaults to undef +# +# [*fence_topology*] +# The hash of parameters for a fencing topology in Pacemaker +# Defaults to undef +# +# [*node*] +# The array of node names in Pacemaker cluster +# Defaults to undef # class pcs_fencing::fencing_primitives ( $fence_primitives,