From aca59081217ae72797ea0a0f97a7406361652050 Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Mon, 6 Apr 2020 11:09:12 -0500 Subject: [PATCH 1/2] Add a plan for upgrading puppet-agent --- plans/upgrade.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plans/upgrade.pp diff --git a/plans/upgrade.pp b/plans/upgrade.pp new file mode 100644 index 000000000..84a1e13b1 --- /dev/null +++ b/plans/upgrade.pp @@ -0,0 +1,10 @@ +plan puppet_agent::upgrade( + TargetSpec $targets, + String $package_version +){ + apply($targets, _description => 'upgrade puppet-agent') { + class { 'puppet_agent' : + package_version => $package_version, + } + } +} From 60e7f061795b476af0fc09d5fd99a60b13cfddec Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Wed, 15 Apr 2020 15:09:34 -0500 Subject: [PATCH 2/2] Add apply_prep to gather facts from targets --- plans/upgrade.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/plans/upgrade.pp b/plans/upgrade.pp index 84a1e13b1..0888cf0f5 100644 --- a/plans/upgrade.pp +++ b/plans/upgrade.pp @@ -2,6 +2,7 @@ TargetSpec $targets, String $package_version ){ + apply_prep($targets) apply($targets, _description => 'upgrade puppet-agent') { class { 'puppet_agent' : package_version => $package_version,