Skip to content

Commit

Permalink
Merge pull request #612 from bastelfreak/bar
Browse files Browse the repository at this point in the history
config.pp: move all defaults to params.pp
  • Loading branch information
bastelfreak authored Jul 28, 2023
2 parents 26f77eb + 403eea2 commit 9f3e3f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,11 @@ Default value: `$r10k::params::deploy_settings`

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

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



Default value: `undef`
Default value: `$r10k::params::postrun`

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

Expand Down Expand Up @@ -527,7 +527,7 @@ Data type: `String`



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

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

Expand Down
4 changes: 2 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
Hash $git_settings = $r10k::params::git_settings,
Hash $forge_settings = $r10k::params::forge_settings,
Hash $deploy_settings = $r10k::params::deploy_settings,
Optional[Array] $postrun = undef,
Array[String[1]] $postrun = $r10k::params::postrun,
$root_user = $r10k::params::root_user,
$root_group = $r10k::params::root_group,
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::params::r10k_yaml_template,
) inherits r10k::params {
if $sources == undef {
$r10k_sources = {
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Reasonable defaults for all classes
class r10k::params {
$postrun = []
$r10k_yaml_template = 'r10k/r10k.yaml.erb'
$package_name = ''
$version = 'installed'
$manage_modulepath = false
Expand Down

0 comments on commit 9f3e3f5

Please sign in to comment.