From a7db232ca0a9b75e5a4f59ff0a67c1678d6672ca Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 28 Jul 2023 20:03:16 +0200 Subject: [PATCH] pre_postrun_command: replace deprecated `--puppetfile` with `--modules` r10k deprecated the `-p` / `--puppetfile` option. The successor is `-m` / `--modules`. --- manifests/params.pp | 2 +- spec/classes/postrun_command_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 20e06738..cf0841c7 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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' diff --git a/spec/classes/postrun_command_spec.rb b/spec/classes/postrun_command_spec.rb index de75b6f7..56642de7 100644 --- a/spec/classes/postrun_command_spec.rb +++ b/spec/classes/postrun_command_spec.rb @@ -65,7 +65,7 @@ ensure: 'present', section: 'agent', setting: 'postrun_command', - value: 'r10k deploy environment -p' + value: 'r10k deploy environment --modules' ) end end