Skip to content

Commit

Permalink
add docstubs to init; activate checks; regenerate reference
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Mar 24, 2024
1 parent 07b90b2 commit a3fdc91
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 92 deletions.
2 changes: 0 additions & 2 deletions .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
--fail-on-warnings
--no-parameter_documentation-check
--no-parameter_types-check
162 changes: 81 additions & 81 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ This class configures r10k

The following parameters are available in the `r10k` class:

* [`cachedir`](#-r10k--cachedir)
* [`sources`](#-r10k--sources)
* [`postrun`](#-r10k--postrun)
* [`manage_configfile_symlink`](#-r10k--manage_configfile_symlink)
* [`configfile_symlink`](#-r10k--configfile_symlink)
* [`forge_settings`](#-r10k--forge_settings)
* [`proxy`](#-r10k--proxy)
* [`pool_size`](#-r10k--pool_size)
* [`ensure`](#-r10k--ensure)
* [`remote`](#-r10k--remote)
* [`configfile`](#-r10k--configfile)
* [`version`](#-r10k--version)
Expand All @@ -79,78 +70,15 @@ The following parameters are available in the `r10k` class:
* [`include_prerun_command`](#-r10k--include_prerun_command)
* [`include_postrun_command`](#-r10k--include_postrun_command)
* [`puppetconf_path`](#-r10k--puppetconf_path)

##### <a name="-r10k--cachedir"></a>`cachedir`

Data type: `Stdlib::Absolutepath`

Path to a directory to be used by r10k for caching data

Default value: `"${facts['puppet_vardir']}/r10k"`

##### <a name="-r10k--sources"></a>`sources`

Data type: `Optional[Hash]`

Hash containing data sources to be used by r10k to create dynamic Puppet environments

Default value: `undef`

##### <a name="-r10k--postrun"></a>`postrun`

Data type: `Optional[Array[String[1]]]`

Array containing the parts of a system call Example: ['/usr/bin/curl', '-F', 'deploy=done', 'http://my-app.site/endpoint']

Default value: `undef`

##### <a name="-r10k--manage_configfile_symlink"></a>`manage_configfile_symlink`

Data type: `Boolean`

determine if a symlink to the r10k config file is to be managed

Default value: `false`

##### <a name="-r10k--configfile_symlink"></a>`configfile_symlink`

Data type: `Stdlib::Absolutepath`

Location of symlink that points to configfile

Default value: `'/etc/r10k.yaml'`

##### <a name="-r10k--forge_settings"></a>`forge_settings`

Data type: `Optional[Hash]`

Hash containing settings for downloading modules from the Puppet Forge

Default value: `undef`

##### <a name="-r10k--proxy"></a>`proxy`

Data type: `Optional[String[1]]`

String containing proxy setting for r10k.yaml

Default value: `undef`

##### <a name="-r10k--pool_size"></a>`pool_size`

Data type: `Integer[1]`

Integer defining how many threads should be spawn while updating modules

Default value: `$facts['processors']['count']`

##### <a name="-r10k--ensure"></a>`ensure`

Data type: `Enum['absent','present']`

if r10k should be installed or purged

Default value: `'present'`
* [`cachedir`](#-r10k--cachedir)
* [`sources`](#-r10k--sources)
* [`postrun`](#-r10k--postrun)
* [`manage_configfile_symlink`](#-r10k--manage_configfile_symlink)
* [`configfile_symlink`](#-r10k--configfile_symlink)
* [`forge_settings`](#-r10k--forge_settings)
* [`proxy`](#-r10k--proxy)
* [`pool_size`](#-r10k--pool_size)
* [`ensure`](#-r10k--ensure)

##### <a name="-r10k--remote"></a>`remote`

Expand Down Expand Up @@ -320,6 +248,78 @@ Data type: `Stdlib::Absolutepath`

Default value: `$r10k::params::puppetconf_path`

##### <a name="-r10k--cachedir"></a>`cachedir`

Data type: `Stdlib::Absolutepath`

Path to a directory to be used by r10k for caching data

Default value: `"${facts['puppet_vardir']}/r10k"`

##### <a name="-r10k--sources"></a>`sources`

Data type: `Optional[Hash]`

Hash containing data sources to be used by r10k to create dynamic Puppet environments

Default value: `undef`

##### <a name="-r10k--postrun"></a>`postrun`

Data type: `Optional[Array[String[1]]]`

Array containing the parts of a system call Example: ['/usr/bin/curl', '-F', 'deploy=done', 'http://my-app.site/endpoint']

Default value: `undef`

##### <a name="-r10k--manage_configfile_symlink"></a>`manage_configfile_symlink`

Data type: `Boolean`

determine if a symlink to the r10k config file is to be managed

Default value: `false`

##### <a name="-r10k--configfile_symlink"></a>`configfile_symlink`

Data type: `Stdlib::Absolutepath`

Location of symlink that points to configfile

Default value: `'/etc/r10k.yaml'`

##### <a name="-r10k--forge_settings"></a>`forge_settings`

Data type: `Optional[Hash]`

Hash containing settings for downloading modules from the Puppet Forge

Default value: `undef`

##### <a name="-r10k--proxy"></a>`proxy`

Data type: `Optional[String[1]]`

String containing proxy setting for r10k.yaml

Default value: `undef`

##### <a name="-r10k--pool_size"></a>`pool_size`

Data type: `Integer[1]`

Integer defining how many threads should be spawn while updating modules

Default value: `$facts['processors']['count']`

##### <a name="-r10k--ensure"></a>`ensure`

Data type: `Enum['absent','present']`

if r10k should be installed or purged

Default value: `'present'`

### <a name="r10k--install--bundle"></a>`r10k::install::bundle`

This class installs the r10k bundle
Expand Down
48 changes: 39 additions & 9 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,14 +1,44 @@
# @summary This class configures r10k
#
# @param cachedir Path to a directory to be used by r10k for caching data
# @param sources Hash containing data sources to be used by r10k to create dynamic Puppet environments
# @param postrun Array containing the parts of a system call Example: ['/usr/bin/curl', '-F', 'deploy=done', 'http://my-app.site/endpoint']
# @param manage_configfile_symlink determine if a symlink to the r10k config file is to be managed
# @param configfile_symlink Location of symlink that points to configfile
# @param forge_settings Hash containing settings for downloading modules from the Puppet Forge
# @param proxy String containing proxy setting for r10k.yaml
# @param pool_size Integer defining how many threads should be spawn while updating modules
# @param ensure if r10k should be installed or purged
# @param remote
# @param configfile
# @param version
# @param puppet_master
# @param modulepath
# @param manage_modulepath
# @param manage_ruby_dependency
# @param r10k_basedir
# @param package_name
# @param provider
# @param gentoo_keywords
# @param install_options
# @param mcollective
# @param git_settings
# @param deploy_settings
# @param root_user
# @param gem_source
# @param root_group
# @param include_prerun_command
# @param include_postrun_command
# @param puppetconf_path
# @param cachedir
# Path to a directory to be used by r10k for caching data
# @param sources
# Hash containing data sources to be used by r10k to create dynamic Puppet environments
# @param postrun
# Array containing the parts of a system call Example: ['/usr/bin/curl', '-F', 'deploy=done', 'http://my-app.site/endpoint']
# @param manage_configfile_symlink
# determine if a symlink to the r10k config file is to be managed
# @param configfile_symlink
# Location of symlink that points to configfile
# @param forge_settings
# Hash containing settings for downloading modules from the Puppet Forge
# @param proxy
# String containing proxy setting for r10k.yaml
# @param pool_size
# Integer defining how many threads should be spawn while updating modules
# @param ensure
# if r10k should be installed or purged
class r10k (
$remote = $r10k::params::remote,

Check warning on line 43 in manifests/init.pp

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

missing datatype for parameter r10k::remote (check: parameter_types)
Optional[Hash] $sources = undef,
Expand Down

0 comments on commit a3fdc91

Please sign in to comment.