Skip to content

Commit

Permalink
r10k_yaml_template: make param configureable via main class
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jul 28, 2023
1 parent 26f77eb commit 7bf604a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion REFERENCE.md
Expand Up @@ -72,6 +72,7 @@ The following parameters are available in the `r10k` class:
* [`postrun`](#-r10k--postrun)
* [`include_prerun_command`](#-r10k--include_prerun_command)
* [`include_postrun_command`](#-r10k--include_postrun_command)
* [`r10k_yaml_template`](#-r10k--r10k_yaml_template)

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

Expand Down Expand Up @@ -297,6 +298,14 @@ Data type: `Boolean`

Default value: `false`

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

Data type: `String[1]`



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

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

== Class: r10k::config
Expand Down Expand Up @@ -527,7 +536,7 @@ Data type: `String`



Default value: `'r10k/r10k.yaml.erb'`
Default value: `$r10k::r10k_yaml_template`

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

Expand Down
2 changes: 1 addition & 1 deletion manifests/config.pp
Expand Up @@ -70,7 +70,7 @@
Stdlib::Absolutepath $puppetconf_path = $r10k::params::puppetconf_path,
Optional[String[1]] $proxy = $r10k::params::proxy,
Optional[Integer[1]] $pool_size = $r10k::params::pool_size,
String $r10k_yaml_template = 'r10k/r10k.yaml.erb',
String $r10k_yaml_template = $r10k::r10k_yaml_template,
) inherits r10k::params {
if $sources == undef {
$r10k_sources = {
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Expand Up @@ -28,6 +28,7 @@
$postrun = undef,
Boolean $include_prerun_command = false,
Boolean $include_postrun_command = false,
String[1] $r10k_yaml_template = 'r10k/r10k.yaml.erb',
) inherits r10k::params {
# Check if user is declaring both classes
# Other classes like r10k::webhook is supported but
Expand Down

0 comments on commit 7bf604a

Please sign in to comment.