Skip to content

Commit

Permalink
Typos fixes in types documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
Safranil committed Mar 17, 2023
1 parent f5cd461 commit 81243e8
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/type/cs_clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/cs_commit.rb
Original file line number Diff line number Diff line change
@@ -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!'

Expand Down
4 changes: 2 additions & 2 deletions lib/puppet/type/cs_group.rb
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/puppet/type/cs_order.rb
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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|
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions lib/puppet/type/cs_primitive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/cs_property.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/cs_rsc_defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81243e8

Please sign in to comment.