Skip to content

Commit f32ae52

Browse files
authored
Resolve puppet-strings documentation warnings (#396)
1 parent acbd76e commit f32ae52

File tree

14 files changed

+68
-120
lines changed

14 files changed

+68
-120
lines changed

REFERENCE.md

Lines changed: 44 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,31 @@ accessible
1111
* [`splunk::enterprise`](#splunk--enterprise): Install and configure an instance of Splunk Enterprise
1212
* [`splunk::enterprise::config`](#splunk--enterprise--config): Private class declared by Class[splunk::enterprise] to contain all the
1313
configuration needed for a base install of Splunk Enterprise
14-
* [`splunk::enterprise::install`](#splunk--enterprise--install): Private class declared by Class[splunk::enterprise] to contain or define
15-
through additional platform specific sub-class, the required steps
16-
for successfully installing Splunk Enterprise
14+
* [`splunk::enterprise::install`](#splunk--enterprise--install): Contain or define through additional platform specific sub-classes, the
15+
required steps for installing Splunk Enterprise.
1716
* [`splunk::enterprise::install::nix`](#splunk--enterprise--install--nix): Private class declared by Class[splunk::enterprise::install] to provide
1817
platform specific installation steps on Linux or Unix type systems.
19-
* [`splunk::enterprise::password::manage`](#splunk--enterprise--password--manage): Implements the direct management of the Splunk Enterprise admin password
20-
so it can be used outside of regular management of the whole stack to
21-
facilitate admin password resets through Bolt Plans.
22-
23-
Note: Entirely done to make this implementation consistent with the method
24-
used to manage admin password seeding.
25-
* [`splunk::enterprise::password::seed`](#splunk--enterprise--password--seed): Implements the seeding and reseeding of the Splunk Enterprise admin password
26-
so it can be used outside of regular management of the whole stack to
27-
facilitate admin password resets through Bolt Plans
28-
* [`splunk::enterprise::service`](#splunk--enterprise--service): Private class declared by Class[splunk::enterprise] to define a service
29-
as its understood by Puppet using a dynamic set of data or platform specific
30-
sub-classes
18+
* [`splunk::enterprise::password::manage`](#splunk--enterprise--password--manage): Allows management of the Splunk Enterprise admin password, so it can be
19+
used for password resets through Bolt Plans.
20+
* [`splunk::enterprise::password::seed`](#splunk--enterprise--password--seed): Implements seeding and reseeding of Splunk Enterprise admin password to
21+
support admin password resets via Bolt.
22+
* [`splunk::enterprise::service`](#splunk--enterprise--service): Define and contain the services for Splunk Enterprise Server.
3123
* [`splunk::enterprise::service::nix`](#splunk--enterprise--service--nix): Private class declared by Class[splunk::enterprise::service] to provide
3224
platform specific service management on Linux or Unix type systems.
3325
* [`splunk::forwarder`](#splunk--forwarder): Install and configure an instance of Splunk Universal Forwarder
34-
* [`splunk::forwarder::config`](#splunk--forwarder--config): Private class declared by Class[splunk::forwarder] to contain all the
35-
configuration needed for a base install of the Splunk Universal
36-
Forwarder
37-
* [`splunk::forwarder::install`](#splunk--forwarder--install): Private class declared by Class[splunk::forwarder] to contain or define
38-
through additional platform specific sub-class, the required steps
39-
for successfully installing the Splunk Universal Forwarder
40-
* [`splunk::forwarder::password::manage`](#splunk--forwarder--password--manage): Implements the direct management of the Splunk Forwarder admin password
41-
so it can be used outside of regular management of the whole stack to
42-
facilitate admin password resets through Bolt Plans.
43-
44-
Note: Entirely done to make this implementation consistent with the method
45-
used to manage admin password seeding.
46-
* [`splunk::forwarder::password::seed`](#splunk--forwarder--password--seed): Implements the seeding and reseeding of the Splunk Forwarder admin password
47-
so it can be used outside of regular management of the whole stack to
48-
facilitate admin password resets through Bolt Plans
49-
* [`splunk::forwarder::service`](#splunk--forwarder--service): Private class declared by Class[splunk::forwarder] to define a service as
50-
its understood by Puppet using a dynamic set of data or platform specific
51-
sub-classes
26+
* [`splunk::forwarder::config`](#splunk--forwarder--config): Contains all configuration needed for a base install of the Splunk
27+
Universal Forwarder
28+
* [`splunk::forwarder::install`](#splunk--forwarder--install): Contains or define through additional platform specific sub-classes, the
29+
steps for installing the Splunk Universal Forwarder
30+
* [`splunk::forwarder::password::manage`](#splunk--forwarder--password--manage): Allows management of the Splunk Forwarder admin password, so it can be used
31+
for password resets through Bolt Plans.
32+
* [`splunk::forwarder::password::seed`](#splunk--forwarder--password--seed): Implements seeding and reseeding of Forwarder admin password to support
33+
admin password resets via Bolt.
34+
* [`splunk::forwarder::service`](#splunk--forwarder--service): Define and contain the services for Splunk Forwarder.
5235
* [`splunk::forwarder::service::nix`](#splunk--forwarder--service--nix): Private class declared by Class[splunk::forwarder::service] to provide
5336
platform specific service management on Linux or Unix type systems.
54-
* [`splunk::params`](#splunk--params): This class takes a small number of arguments (can be set through Hiera) and
55-
generates sane default values installation media names and locations.
56-
Default ports can also be specified here. This is a parameters class, and
57-
contributes no resources to the graph. Rather, it only sets values for
58-
parameters to be consumed by child classes.
37+
* [`splunk::params`](#splunk--params): Accepts settings, and provides default values for module parameters.
38+
Parameters class only: contributes no resources to the graph.
5939

6040
### Defined types
6141

@@ -92,8 +72,8 @@ or via splunkbase compatible archives
9272

9373
### Data types
9474

95-
* [`Splunk::Entinstalloptions`](#Splunk--Entinstalloptions)
96-
* [`Splunk::Fwdinstalloptions`](#Splunk--Fwdinstalloptions)
75+
* [`Splunk::Entinstalloptions`](#Splunk--Entinstalloptions): Type alias for Enterprise Server install options.
76+
* [`Splunk::Fwdinstalloptions`](#Splunk--Fwdinstalloptions): Type alias for Splunk forwarder install options.
9777

9878
## Classes
9979

@@ -599,9 +579,8 @@ configuration needed for a base install of Splunk Enterprise
599579

600580
### <a name="splunk--enterprise--install"></a>`splunk::enterprise::install`
601581

602-
Private class declared by Class[splunk::enterprise] to contain or define
603-
through additional platform specific sub-class, the required steps
604-
for successfully installing Splunk Enterprise
582+
Contain or define through additional platform specific sub-classes, the
583+
required steps for installing Splunk Enterprise.
605584

606585
### <a name="splunk--enterprise--install--nix"></a>`splunk::enterprise::install::nix`
607586

@@ -610,12 +589,8 @@ platform specific installation steps on Linux or Unix type systems.
610589

611590
### <a name="splunk--enterprise--password--manage"></a>`splunk::enterprise::password::manage`
612591

613-
Implements the direct management of the Splunk Enterprise admin password
614-
so it can be used outside of regular management of the whole stack to
615-
facilitate admin password resets through Bolt Plans.
616-
617-
Note: Entirely done to make this implementation consistent with the method
618-
used to manage admin password seeding.
592+
Allows management of the Splunk Enterprise admin password, so it can be
593+
used for password resets through Bolt Plans.
619594

620595
#### Parameters
621596

@@ -702,9 +677,8 @@ Default value: `$splunk::params::splunk_user`
702677

703678
### <a name="splunk--enterprise--password--seed"></a>`splunk::enterprise::password::seed`
704679

705-
Implements the seeding and reseeding of the Splunk Enterprise admin password
706-
so it can be used outside of regular management of the whole stack to
707-
facilitate admin password resets through Bolt Plans
680+
Implements seeding and reseeding of Splunk Enterprise admin password to
681+
support admin password resets via Bolt.
708682

709683
#### Parameters
710684

@@ -811,9 +785,7 @@ Default value: `$splunk::params::splunk_user`
811785

812786
### <a name="splunk--enterprise--service"></a>`splunk::enterprise::service`
813787

814-
Private class declared by Class[splunk::enterprise] to define a service
815-
as its understood by Puppet using a dynamic set of data or platform specific
816-
sub-classes
788+
Define and contain the services for Splunk Enterprise Server.
817789

818790
### <a name="splunk--enterprise--service--nix"></a>`splunk::enterprise::service::nix`
819791

@@ -1264,24 +1236,18 @@ Default value: `false`
12641236

12651237
### <a name="splunk--forwarder--config"></a>`splunk::forwarder::config`
12661238

1267-
Private class declared by Class[splunk::forwarder] to contain all the
1268-
configuration needed for a base install of the Splunk Universal
1269-
Forwarder
1239+
Contains all configuration needed for a base install of the Splunk
1240+
Universal Forwarder
12701241

12711242
### <a name="splunk--forwarder--install"></a>`splunk::forwarder::install`
12721243

1273-
Private class declared by Class[splunk::forwarder] to contain or define
1274-
through additional platform specific sub-class, the required steps
1275-
for successfully installing the Splunk Universal Forwarder
1244+
Contains or define through additional platform specific sub-classes, the
1245+
steps for installing the Splunk Universal Forwarder
12761246

12771247
### <a name="splunk--forwarder--password--manage"></a>`splunk::forwarder::password::manage`
12781248

1279-
Implements the direct management of the Splunk Forwarder admin password
1280-
so it can be used outside of regular management of the whole stack to
1281-
facilitate admin password resets through Bolt Plans.
1282-
1283-
Note: Entirely done to make this implementation consistent with the method
1284-
used to manage admin password seeding.
1249+
Allows management of the Splunk Forwarder admin password, so it can be used
1250+
for password resets through Bolt Plans.
12851251

12861252
#### Parameters
12871253

@@ -1368,9 +1334,8 @@ Default value: `$splunk::params::splunk_user`
13681334

13691335
### <a name="splunk--forwarder--password--seed"></a>`splunk::forwarder::password::seed`
13701336

1371-
Implements the seeding and reseeding of the Splunk Forwarder admin password
1372-
so it can be used outside of regular management of the whole stack to
1373-
facilitate admin password resets through Bolt Plans
1337+
Implements seeding and reseeding of Forwarder admin password to support
1338+
admin password resets via Bolt.
13741339

13751340
#### Parameters
13761341

@@ -1477,9 +1442,7 @@ Default value: `$splunk::params::splunk_user`
14771442

14781443
### <a name="splunk--forwarder--service"></a>`splunk::forwarder::service`
14791444

1480-
Private class declared by Class[splunk::forwarder] to define a service as
1481-
its understood by Puppet using a dynamic set of data or platform specific
1482-
sub-classes
1445+
Define and contain the services for Splunk Forwarder.
14831446

14841447
### <a name="splunk--forwarder--service--nix"></a>`splunk::forwarder::service::nix`
14851448

@@ -1488,11 +1451,8 @@ platform specific service management on Linux or Unix type systems.
14881451

14891452
### <a name="splunk--params"></a>`splunk::params`
14901453

1491-
This class takes a small number of arguments (can be set through Hiera) and
1492-
generates sane default values installation media names and locations.
1493-
Default ports can also be specified here. This is a parameters class, and
1494-
contributes no resources to the graph. Rather, it only sets values for
1495-
parameters to be consumed by child classes.
1454+
Accepts settings, and provides default values for module parameters.
1455+
Parameters class only: contributes no resources to the graph.
14961456

14971457
#### Parameters
14981458

@@ -1842,9 +1802,11 @@ The following parameters are available in the `splunk_config` type.
18421802

18431803
##### <a name="-splunk_config--forwarder_confdir"></a>`forwarder_confdir`
18441804

1805+
Directory for Splunk Forwarder configurations
18451806

18461807
##### <a name="-splunk_config--forwarder_installdir"></a>`forwarder_installdir`
18471808

1809+
Directory in which to install and manage Splunk Forwarder
18481810

18491811
##### <a name="-splunk_config--name"></a>`name`
18501812

@@ -1854,9 +1816,11 @@ splunk config
18541816

18551817
##### <a name="-splunk_config--server_confdir"></a>`server_confdir`
18561818

1819+
Directory for Splunk server configurations
18571820

18581821
##### <a name="-splunk_config--server_installdir"></a>`server_installdir`
18591822

1823+
Directory for server installation (maps to `enterprise_homedir`)
18601824

18611825
### <a name="splunk_deploymentclient"></a>`splunk_deploymentclient`
18621826

@@ -2177,13 +2141,13 @@ will usually discover the appropriate provider for your platform.
21772141

21782142
### <a name="Splunk--Entinstalloptions"></a>`Splunk::Entinstalloptions`
21792143

2180-
The Splunk::Entinstalloptions data type.
2144+
Type alias for Enterprise Server install options.
21812145

21822146
Alias of `Variant[Tuple[Hash,Hash,String,3,default], Array[String[1]]]`
21832147

21842148
### <a name="Splunk--Fwdinstalloptions"></a>`Splunk::Fwdinstalloptions`
21852149

2186-
The Splunk::Fwdinstalloptions data type.
2150+
Type alias for Splunk forwarder install options.
21872151

21882152
Alias of `Variant[Tuple[Hash,String,1,default], Array[String[1]]]`
21892153

lib/puppet/type/splunk_config.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@
1010
desc 'splunk config'
1111
end
1212

13-
# rubocop:disable Lint/EmptyBlock
1413
newparam(:forwarder_installdir) do
14+
desc 'Directory in which to install and manage Splunk Forwarder'
1515
end
1616

1717
newparam(:forwarder_confdir) do
18+
desc 'Directory for Splunk Forwarder configurations'
1819
end
1920

2021
newparam(:server_installdir) do
22+
desc 'Directory for server installation (maps to `enterprise_homedir`)'
2123
end
2224

2325
newparam(:server_confdir) do
26+
desc 'Directory for Splunk server configurations'
2427
end
25-
# rubocop:enable Lint/EmptyBlock
2628

2729
## Generate purge parameters for the splunk_config type
2830
%i[

manifests/enterprise/install.pp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# @summary
2-
# Private class declared by Class[splunk::enterprise] to contain or define
3-
# through additional platform specific sub-class, the required steps
4-
# for successfully installing Splunk Enterprise
2+
# Contain or define through additional platform specific sub-classes, the
3+
# required steps for installing Splunk Enterprise.
54
#
65
class splunk::enterprise::install {
76
if $facts['kernel'] == 'Linux' or $facts['kernel'] == 'SunOS' {

manifests/enterprise/password/manage.pp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# @summary
2-
# Implements the direct management of the Splunk Enterprise admin password
3-
# so it can be used outside of regular management of the whole stack to
4-
# facilitate admin password resets through Bolt Plans.
5-
#
6-
# Note: Entirely done to make this implementation consistent with the method
7-
# used to manage admin password seeding.
2+
# Allows management of the Splunk Enterprise admin password, so it can be
3+
# used for password resets through Bolt Plans.
84
#
95
# @param manage_password
106
# If set to true, Manage the contents of splunk.secret and passwd.

manifests/enterprise/password/seed.pp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# @summary
2-
# Implements the seeding and reseeding of the Splunk Enterprise admin password
3-
# so it can be used outside of regular management of the whole stack to
4-
# facilitate admin password resets through Bolt Plans
2+
# Implements seeding and reseeding of Splunk Enterprise admin password to
3+
# support admin password resets via Bolt.
54
#
65
# @param reset_seeded_password
76
# If set to true, deletes `password_config_file` to trigger Splunk's password

manifests/enterprise/service.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# @summary
2-
# Private class declared by Class[splunk::enterprise] to define a service
3-
# as its understood by Puppet using a dynamic set of data or platform specific
4-
# sub-classes
2+
# Define and contain the services for Splunk Enterprise Server.
53
#
64
class splunk::enterprise::service {
75
service { $splunk::enterprise::service_name:

manifests/forwarder/config.pp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# @summary
2-
# Private class declared by Class[splunk::forwarder] to contain all the
3-
# configuration needed for a base install of the Splunk Universal
4-
# Forwarder
2+
# Contains all configuration needed for a base install of the Splunk
3+
# Universal Forwarder
54
#
65
class splunk::forwarder::config {
76
if $splunk::forwarder::seed_password {

manifests/forwarder/install.pp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# @summary
2-
# Private class declared by Class[splunk::forwarder] to contain or define
3-
# through additional platform specific sub-class, the required steps
4-
# for successfully installing the Splunk Universal Forwarder
2+
# Contains or define through additional platform specific sub-classes, the
3+
# steps for installing the Splunk Universal Forwarder
54
#
65
class splunk::forwarder::install {
76
$_package_source = $splunk::forwarder::manage_package_source ? {

manifests/forwarder/password/manage.pp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# @summary
2-
# Implements the direct management of the Splunk Forwarder admin password
3-
# so it can be used outside of regular management of the whole stack to
4-
# facilitate admin password resets through Bolt Plans.
5-
#
6-
# Note: Entirely done to make this implementation consistent with the method
7-
# used to manage admin password seeding.
2+
# Allows management of the Splunk Forwarder admin password, so it can be used
3+
# for password resets through Bolt Plans.
84
#
95
# @param manage_password
106
# If set to true, Manage the contents of splunk.secret and passwd.

manifests/forwarder/password/seed.pp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# @summary
2-
# Implements the seeding and reseeding of the Splunk Forwarder admin password
3-
# so it can be used outside of regular management of the whole stack to
4-
# facilitate admin password resets through Bolt Plans
2+
# Implements seeding and reseeding of Forwarder admin password to support
3+
# admin password resets via Bolt.
54
#
65
# @param reset_seeded_password
76
# If set to true, deletes `password_config_file` to trigger Splunk's password

0 commit comments

Comments
 (0)