Skip to content

Commit e20670f

Browse files
authored
Merge pull request #1401 from pmcmaw/maint/main/update-minor-docs
(IAC-1430) - Minor docs updating
2 parents c3128e8 + 8c3a498 commit e20670f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

lib/puppet/functions/mysql/normalise_and_deepmerge.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

3-
# @summary Recursively merges two or more hashes together, normalises keys with differing use of dashesh and underscores,
4-
# then returns the resulting hash.
3+
# @summary Recursively merges two or more hashes together, normalises keys with differing use of dashes and underscores.
54
#
65
# @example
76
# $hash1 = {'one' => 1, 'two' => 2, 'three' => { 'four' => 4 } }
@@ -15,6 +14,12 @@
1514
# - When there are conficting uses of dashes and underscores in two keys (which mysql would otherwise equate), the rightmost style will win.
1615
#
1716
Puppet::Functions.create_function(:'mysql::normalise_and_deepmerge') do
17+
# @param args
18+
# Hash to be normalised
19+
#
20+
# @return hash
21+
# The given hash normalised
22+
#
1823
def normalise_and_deepmerge(*args)
1924
if args.length < 2
2025
raise Puppet::ParseError, _('mysql::normalise_and_deepmerge(): wrong number of arguments (%{args_length}; must be at least 2)') % { args_length: args.length }

manifests/client.pp

-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
# Whether the MySQL package should be present, absent, or a specific version. Valid values are 'present', 'absent', or 'x.y.z'.
1717
# @param package_manage
1818
# Whether to manage the MySQL client package. Defaults to `true`.
19-
# @param service_name
20-
# The name of the MySQL server service. Defaults are OS dependent, defined in 'params.pp'.
21-
# @param service_provider
22-
# The provider to use to manage the service. For Ubuntu, defaults to 'upstart'; otherwise, default is undefined.
2319
# @param package_name
2420
# The name of the MySQL client package to install.
2521
#

types/options.pp

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# @summary A hash of options structured like the override_options, but not merged with the default options.
2+
# Use this if you don’t want your options merged with the default options.
13
type Mysql::Options = Hash[
24
String,
35
Hash,

0 commit comments

Comments
 (0)