Skip to content

Commit

Permalink
Resolve puppet-strings documentation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wyardley committed Jan 17, 2025
1 parent acbd76e commit a071848
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 120 deletions.
124 changes: 44 additions & 80 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,31 @@ accessible
* [`splunk::enterprise`](#splunk--enterprise): Install and configure an instance of Splunk Enterprise
* [`splunk::enterprise::config`](#splunk--enterprise--config): Private class declared by Class[splunk::enterprise] to contain all the
configuration needed for a base install of Splunk Enterprise
* [`splunk::enterprise::install`](#splunk--enterprise--install): Private class declared by Class[splunk::enterprise] to contain or define
through additional platform specific sub-class, the required steps
for successfully installing Splunk Enterprise
* [`splunk::enterprise::install`](#splunk--enterprise--install): Contain or define through additional platform specific sub-classes, the
required steps for installing Splunk Enterprise.
* [`splunk::enterprise::install::nix`](#splunk--enterprise--install--nix): Private class declared by Class[splunk::enterprise::install] to provide
platform specific installation steps on Linux or Unix type systems.
* [`splunk::enterprise::password::manage`](#splunk--enterprise--password--manage): Implements the direct management of the Splunk Enterprise admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans.

Note: Entirely done to make this implementation consistent with the method
used to manage admin password seeding.
* [`splunk::enterprise::password::seed`](#splunk--enterprise--password--seed): Implements the seeding and reseeding of the Splunk Enterprise admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans
* [`splunk::enterprise::service`](#splunk--enterprise--service): Private class declared by Class[splunk::enterprise] to define a service
as its understood by Puppet using a dynamic set of data or platform specific
sub-classes
* [`splunk::enterprise::password::manage`](#splunk--enterprise--password--manage): Allows management of the Splunk Enterprise admin password, so it can be
used for password resets through Bolt Plans.
* [`splunk::enterprise::password::seed`](#splunk--enterprise--password--seed): Implements seeding and reseeding of Splunk Enterprise admin password to
support admin password resets via Bolt.
* [`splunk::enterprise::service`](#splunk--enterprise--service): Define and contain the services for Splunk Enterprise Server.
* [`splunk::enterprise::service::nix`](#splunk--enterprise--service--nix): Private class declared by Class[splunk::enterprise::service] to provide
platform specific service management on Linux or Unix type systems.
* [`splunk::forwarder`](#splunk--forwarder): Install and configure an instance of Splunk Universal Forwarder
* [`splunk::forwarder::config`](#splunk--forwarder--config): Private class declared by Class[splunk::forwarder] to contain all the
configuration needed for a base install of the Splunk Universal
Forwarder
* [`splunk::forwarder::install`](#splunk--forwarder--install): Private class declared by Class[splunk::forwarder] to contain or define
through additional platform specific sub-class, the required steps
for successfully installing the Splunk Universal Forwarder
* [`splunk::forwarder::password::manage`](#splunk--forwarder--password--manage): Implements the direct management of the Splunk Forwarder admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans.

Note: Entirely done to make this implementation consistent with the method
used to manage admin password seeding.
* [`splunk::forwarder::password::seed`](#splunk--forwarder--password--seed): Implements the seeding and reseeding of the Splunk Forwarder admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans
* [`splunk::forwarder::service`](#splunk--forwarder--service): Private class declared by Class[splunk::forwarder] to define a service as
its understood by Puppet using a dynamic set of data or platform specific
sub-classes
* [`splunk::forwarder::config`](#splunk--forwarder--config): Contains all configuration needed for a base install of the Splunk
Universal Forwarder
* [`splunk::forwarder::install`](#splunk--forwarder--install): Contains or define through additional platform specific sub-classes, the
steps for installing the Splunk Universal Forwarder
* [`splunk::forwarder::password::manage`](#splunk--forwarder--password--manage): Allows management of the Splunk Forwarder admin password, so it can be used
for password resets through Bolt Plans.
* [`splunk::forwarder::password::seed`](#splunk--forwarder--password--seed): Implements seeding and reseeding of Forwarder admin password to support
admin password resets via Bolt.
* [`splunk::forwarder::service`](#splunk--forwarder--service): Define and contain the services for Splunk Forwarder.
* [`splunk::forwarder::service::nix`](#splunk--forwarder--service--nix): Private class declared by Class[splunk::forwarder::service] to provide
platform specific service management on Linux or Unix type systems.
* [`splunk::params`](#splunk--params): This class takes a small number of arguments (can be set through Hiera) and
generates sane default values installation media names and locations.
Default ports can also be specified here. This is a parameters class, and
contributes no resources to the graph. Rather, it only sets values for
parameters to be consumed by child classes.
* [`splunk::params`](#splunk--params): Accepts settings, and provides default values for module parameters.
Parameters class only: contributes no resources to the graph.

### Defined types

Expand Down Expand Up @@ -92,8 +72,8 @@ or via splunkbase compatible archives

### Data types

* [`Splunk::Entinstalloptions`](#Splunk--Entinstalloptions)
* [`Splunk::Fwdinstalloptions`](#Splunk--Fwdinstalloptions)
* [`Splunk::Entinstalloptions`](#Splunk--Entinstalloptions): Type alias for Enterprise Server install options.
* [`Splunk::Fwdinstalloptions`](#Splunk--Fwdinstalloptions): Type alias for Splunk forwarder install options.

## Classes

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

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

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

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

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

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

Implements the direct management of the Splunk Enterprise admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans.

Note: Entirely done to make this implementation consistent with the method
used to manage admin password seeding.
Allows management of the Splunk Enterprise admin password, so it can be
used for password resets through Bolt Plans.

#### Parameters

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

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

Implements the seeding and reseeding of the Splunk Enterprise admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans
Implements seeding and reseeding of Splunk Enterprise admin password to
support admin password resets via Bolt.

#### Parameters

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

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

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

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

Expand Down Expand Up @@ -1264,24 +1236,18 @@ Default value: `false`

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

Private class declared by Class[splunk::forwarder] to contain all the
configuration needed for a base install of the Splunk Universal
Forwarder
Contains all configuration needed for a base install of the Splunk
Universal Forwarder

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

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

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

Implements the direct management of the Splunk Forwarder admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans.

Note: Entirely done to make this implementation consistent with the method
used to manage admin password seeding.
Allows management of the Splunk Forwarder admin password, so it can be used
for password resets through Bolt Plans.

#### Parameters

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

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

Implements the seeding and reseeding of the Splunk Forwarder admin password
so it can be used outside of regular management of the whole stack to
facilitate admin password resets through Bolt Plans
Implements seeding and reseeding of Forwarder admin password to support
admin password resets via Bolt.

#### Parameters

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

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

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

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

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

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

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

#### Parameters

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

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

Directory for Splunk Forwarder configurations

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

Directory in which to install and manage Splunk Forwarder

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

Expand All @@ -1854,9 +1816,11 @@ splunk config

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

Directory for Splunk server configurations

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

Directory for server installation (maps to `enterprise_homedir`)

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

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

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

The Splunk::Entinstalloptions data type.
Type alias for Enterprise Server install options.

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

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

The Splunk::Fwdinstalloptions data type.
Type alias for Splunk forwarder install options.

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

6 changes: 4 additions & 2 deletions lib/puppet/type/splunk_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@
desc 'splunk config'
end

# rubocop:disable Lint/EmptyBlock
newparam(:forwarder_installdir) do
desc 'Directory in which to install and manage Splunk Forwarder'
end

newparam(:forwarder_confdir) do
desc 'Directory for Splunk Forwarder configurations'
end

newparam(:server_installdir) do
desc 'Directory for server installation (maps to `enterprise_homedir`)'
end

newparam(:server_confdir) do
desc 'Directory for Splunk server configurations'
end
# rubocop:enable Lint/EmptyBlock

## Generate purge parameters for the splunk_config type
%i[
Expand Down
5 changes: 2 additions & 3 deletions manifests/enterprise/install.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# @summary
# Private class declared by Class[splunk::enterprise] to contain or define
# through additional platform specific sub-class, the required steps
# for successfully installing Splunk Enterprise
# Contain or define through additional platform specific sub-classes, the
# required steps for installing Splunk Enterprise.
#
class splunk::enterprise::install {
if $facts['kernel'] == 'Linux' or $facts['kernel'] == 'SunOS' {
Expand Down
8 changes: 2 additions & 6 deletions manifests/enterprise/password/manage.pp
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# @summary
# Implements the direct management of the Splunk Enterprise admin password
# so it can be used outside of regular management of the whole stack to
# facilitate admin password resets through Bolt Plans.
#
# Note: Entirely done to make this implementation consistent with the method
# used to manage admin password seeding.
# Allows management of the Splunk Enterprise admin password, so it can be
# used for password resets through Bolt Plans.
#
# @param manage_password
# If set to true, Manage the contents of splunk.secret and passwd.
Expand Down
5 changes: 2 additions & 3 deletions manifests/enterprise/password/seed.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# @summary
# Implements the seeding and reseeding of the Splunk Enterprise admin password
# so it can be used outside of regular management of the whole stack to
# facilitate admin password resets through Bolt Plans
# Implements seeding and reseeding of Splunk Enterprise admin password to
# support admin password resets via Bolt.
#
# @param reset_seeded_password
# If set to true, deletes `password_config_file` to trigger Splunk's password
Expand Down
4 changes: 1 addition & 3 deletions manifests/enterprise/service.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# @summary
# Private class declared by Class[splunk::enterprise] to define a service
# as its understood by Puppet using a dynamic set of data or platform specific
# sub-classes
# Define and contain the services for Splunk Enterprise Server.
#
class splunk::enterprise::service {
service { $splunk::enterprise::service_name:
Expand Down
5 changes: 2 additions & 3 deletions manifests/forwarder/config.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# @summary
# Private class declared by Class[splunk::forwarder] to contain all the
# configuration needed for a base install of the Splunk Universal
# Forwarder
# Contains all configuration needed for a base install of the Splunk
# Universal Forwarder
#
class splunk::forwarder::config {
if $splunk::forwarder::seed_password {
Expand Down
5 changes: 2 additions & 3 deletions manifests/forwarder/install.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# @summary
# Private class declared by Class[splunk::forwarder] to contain or define
# through additional platform specific sub-class, the required steps
# for successfully installing the Splunk Universal Forwarder
# Contains or define through additional platform specific sub-classes, the
# steps for installing the Splunk Universal Forwarder
#
class splunk::forwarder::install {
$_package_source = $splunk::forwarder::manage_package_source ? {
Expand Down
8 changes: 2 additions & 6 deletions manifests/forwarder/password/manage.pp
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# @summary
# Implements the direct management of the Splunk Forwarder admin password
# so it can be used outside of regular management of the whole stack to
# facilitate admin password resets through Bolt Plans.
#
# Note: Entirely done to make this implementation consistent with the method
# used to manage admin password seeding.
# Allows management of the Splunk Forwarder admin password, so it can be used
# for password resets through Bolt Plans.
#
# @param manage_password
# If set to true, Manage the contents of splunk.secret and passwd.
Expand Down
5 changes: 2 additions & 3 deletions manifests/forwarder/password/seed.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# @summary
# Implements the seeding and reseeding of the Splunk Forwarder admin password
# so it can be used outside of regular management of the whole stack to
# facilitate admin password resets through Bolt Plans
# Implements seeding and reseeding of Forwarder admin password to support
# admin password resets via Bolt.
#
# @param reset_seeded_password
# If set to true, deletes `password_config_file` to trigger Splunk's password
Expand Down
4 changes: 1 addition & 3 deletions manifests/forwarder/service.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# @summary
# Private class declared by Class[splunk::forwarder] to define a service as
# its understood by Puppet using a dynamic set of data or platform specific
# sub-classes
# Define and contain the services for Splunk Forwarder.
#
class splunk::forwarder::service {
service { $splunk::forwarder::service_name:
Expand Down
7 changes: 2 additions & 5 deletions manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# @summary
# This class takes a small number of arguments (can be set through Hiera) and
# generates sane default values installation media names and locations.
# Default ports can also be specified here. This is a parameters class, and
# contributes no resources to the graph. Rather, it only sets values for
# parameters to be consumed by child classes.
# Accepts settings, and provides default values for module parameters.
# Parameters class only: contributes no resources to the graph.
#
# @param version
# The version of Splunk to install. This will be in the form x.y.z; e.g.
Expand Down
1 change: 1 addition & 0 deletions types/entinstalloptions.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# @summary Type alias for Enterprise Server install options.
type Splunk::Entinstalloptions = Variant[Tuple[Hash,Hash,String,3,default], Array[String[1]]]
1 change: 1 addition & 0 deletions types/fwdinstalloptions.pp
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# @summary Type alias for Splunk forwarder install options.
type Splunk::Fwdinstalloptions = Variant[Tuple[Hash,String,1,default], Array[String[1]]]

0 comments on commit a071848

Please sign in to comment.