Skip to content

Commit

Permalink
pre_postrun_command: replace deprecated --puppetfile with --modules
Browse files Browse the repository at this point in the history
r10k deprecated the `-p` / `--puppetfile` option. The successor is `-m`
/ `--modules`.
  • Loading branch information
bastelfreak committed Jul 28, 2023
1 parent 26f77eb commit a7db232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$r10k_cache_dir = "${facts['puppet_vardir']}/r10k"
$r10k_config_file = '/etc/puppetlabs/r10k/r10k.yaml'
$r10k_binary = 'r10k'
$pre_postrun_command = "${r10k_binary} deploy environment -p"
$pre_postrun_command = "${r10k_binary} deploy environment --modules"
$puppetconf_path = '/etc/puppetlabs/puppet'
$manage_configfile_symlink = false
$configfile_symlink = '/etc/r10k.yaml'
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/postrun_command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
ensure: 'present',
section: 'agent',
setting: 'postrun_command',
value: 'r10k deploy environment -p'
value: 'r10k deploy environment --modules'
)
end
end
Expand Down

0 comments on commit a7db232

Please sign in to comment.