From 81243e8f241e3a435f28dd81f2b28a2ced1d4c2c Mon Sep 17 00:00:00 2001 From: Safranil Date: Fri, 17 Mar 2023 07:07:34 +0100 Subject: [PATCH] Typos fixes in types documentations --- lib/puppet/type/cs_clone.rb | 2 +- lib/puppet/type/cs_commit.rb | 2 +- lib/puppet/type/cs_group.rb | 4 ++-- lib/puppet/type/cs_order.rb | 6 +++--- lib/puppet/type/cs_primitive.rb | 16 ++++++++-------- lib/puppet/type/cs_property.rb | 2 +- lib/puppet/type/cs_rsc_defaults.rb | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/puppet/type/cs_clone.rb b/lib/puppet/type/cs_clone.rb index 8816b7d1..a8ff4125 100644 --- a/lib/puppet/type/cs_clone.rb +++ b/lib/puppet/type/cs_clone.rb @@ -82,7 +82,7 @@ once. This can be necessary to insert complex configurations into Corosync correctly. - This paramater sets the CIB this colocation should be created in. A + This parameter sets the CIB this colocation should be created in. A cs_shadow resource with a title of the same name as this value should also be added to your manifest." end diff --git a/lib/puppet/type/cs_commit.rb b/lib/puppet/type/cs_commit.rb index 5186f9f4..b6accd30 100644 --- a/lib/puppet/type/cs_commit.rb +++ b/lib/puppet/type/cs_commit.rb @@ -1,5 +1,5 @@ Puppet::Type.newtype(:cs_commit) do - @doc = 'Final commit statement which triggers the syncronous application of + @doc = 'Final commit statement which triggers the synchronous application of all primitive changes which reference this CIB. Do not generate more than one cs_commit referencing the same CIB for a given cluster!' diff --git a/lib/puppet/type/cs_group.rb b/lib/puppet/type/cs_group.rb index b9f65245..ccf168aa 100644 --- a/lib/puppet/type/cs_group.rb +++ b/lib/puppet/type/cs_group.rb @@ -1,5 +1,5 @@ Puppet::Type.newtype(:cs_group) do - @doc = "Type for manipulating Corosync/Pacemkaer group entries. + @doc = "Type for manipulating Corosync/Pacemaker group entries. Groups are a set or resources (primitives) that need to be grouped together. @@ -37,7 +37,7 @@ def insync?(is) once. This can be necessary to insert complex configurations into Corosync correctly. - This paramater sets the CIB this order should be created in. A + This parameter sets the CIB this order should be created in. A cs_shadow resource with a title of the same name as this value should also be added to your manifest." end diff --git a/lib/puppet/type/cs_order.rb b/lib/puppet/type/cs_order.rb index f0b84a63..1a08bb8f 100644 --- a/lib/puppet/type/cs_order.rb +++ b/lib/puppet/type/cs_order.rb @@ -1,7 +1,7 @@ require 'puppet/property/boolean' Puppet::Type.newtype(:cs_order) do - @doc = "Type for manipulating Corosync/Pacemkaer ordering entries. Order + @doc = "Type for manipulating Corosync/Pacemaker ordering entries. Order entries are another type of constraint that can be put on sets of primitives but unlike colocation, order does matter. These designate the order at which you need specific primitives to come into a desired @@ -24,7 +24,7 @@ newproperty(:first) do desc "First Corosync primitive. Just like colocation, our primitives for - ording come in pairs but this time order matters so we need to define + ordering come in pairs but this time order matters so we need to define which primitive starts the desired state change chain." munge do |value| @@ -49,7 +49,7 @@ once. This can be necessary to insert complex configurations into Corosync correctly. - This paramater sets the CIB this order should be created in. A + This parameter sets the CIB this order should be created in. A cs_shadow resource with a title of the same name as this value should also be added to your manifest." end diff --git a/lib/puppet/type/cs_primitive.rb b/lib/puppet/type/cs_primitive.rb index e13f41d9..a94522e6 100644 --- a/lib/puppet/type/cs_primitive.rb +++ b/lib/puppet/type/cs_primitive.rb @@ -7,7 +7,7 @@ an application, ip address, or similar to monitor and maintain. These managed primitives are maintained using what is called a resource agent. These resource agents have a concept of class, type, and subsystem that - provides the functionality. Regretibly these pieces of vocabulary + provides the functionality. Regrettably these pieces of vocabulary clash with those used in Puppet so to overcome the name clashing the property and parameter names have been qualified a bit for clarity. @@ -28,21 +28,21 @@ newparam(:primitive_class) do desc "Corosync class of the primitive. Examples of classes are lsb or ocf. - Lsb funtions a lot like the init provider in Puppet for services, an init + Lsb functions a lot like the init provider in Puppet for services, an init script is ran periodically on each host to identify status, or to start and stop a particular application. Ocf of the other hand is a script with - meta-data and stucture that is specific to Corosync and Pacemaker." + meta-data and structure that is specific to Corosync and Pacemaker." end newparam(:primitive_type) do desc "Corosync primitive type. Type generally matches to the specific 'thing' your managing, i.e. ip address or vhost. Though, they can be - completely arbitarily named and manage any number of underlying + completely arbitrarily named and manage any number of underlying applications or resources." end newparam(:provided_by) do - desc "Corosync primitive provider. All resource agents used in a primitve + desc "Corosync primitive provider. All resource agents used in a primitive have something that provides them to the system, be it the Pacemaker or redhat plugins...they're not always obvious though so currently you're left to understand Corosync enough to figure it out. Usually, if it isn't @@ -60,7 +60,7 @@ once. This can be necessary to insert complex configurations into Corosync correctly. - This paramater sets the CIB this primitive should be created in. A + This parameter sets the CIB this primitive should be created in. A cs_shadow resource with a title of the same name as this value should also be added to your manifest." end @@ -131,7 +131,7 @@ end end if v.is_a? Array - Puppet.deprecation_warning 'cs_primitive.rb[operations]: Multiple operations with the same name now have to be declared as an array of hashe, not as a hash with arrays.' + Puppet.deprecation_warning 'cs_primitive.rb[operations]: Multiple operations with the same name now have to be declared as an array of hashes, not as a hash with arrays.' v.each do |p| operations << { k => p } end @@ -190,7 +190,7 @@ def change_to_s(currentvalue, newvalue) newproperty(:utilization) do desc "A hash of utilization attributes for the primitive. If nodes are also configured with available resources, and Pacemaker's placement - stratgey is set appropriately, then Pacemaker can place primitives on + strategy is set appropriately, then Pacemaker can place primitives on nodes only where resources are available. See the Pacemaker documentation: diff --git a/lib/puppet/type/cs_property.rb b/lib/puppet/type/cs_property.rb index 21a49862..4a9682c3 100644 --- a/lib/puppet/type/cs_property.rb +++ b/lib/puppet/type/cs_property.rb @@ -33,7 +33,7 @@ once. This can be necessary to insert complex configurations into Corosync correctly. - This paramater sets the CIB this parameter should be created in. A + This parameter sets the CIB this parameter should be created in. A cs_shadow resource with a title of the same name as this value should also be added to your manifest." end diff --git a/lib/puppet/type/cs_rsc_defaults.rb b/lib/puppet/type/cs_rsc_defaults.rb index 11539f02..2f661723 100644 --- a/lib/puppet/type/cs_rsc_defaults.rb +++ b/lib/puppet/type/cs_rsc_defaults.rb @@ -24,7 +24,7 @@ once. This can be necessary to insert complex configurations into Corosync correctly. - This paramater sets the CIB this rsc_defaults should be created in. A + This parameter sets the CIB this rsc_defaults should be created in. A cs_shadow resource with a title of the same name as this value should also be added to your manifest." end