Skip to content

Commit 72003c6

Browse files
authored
agent_install: Enable Agent upgrades (#343)
The install.bash script from PE supports agent updates and upgrades since a long time. I don't see a reason why the task in peadm should abort if it isn't a new installation. I understand if the support team doesn't want to take responsibility for upgrades/updates, but I think we shouldn't block users/SDP consultants using it.
1 parent 64a73ac commit 72003c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tasks/agent_install.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
set -e
44

55
if [ -x "/opt/puppetlabs/bin/puppet" ]; then
6-
echo "ERROR: Puppet agent is already installed. Re-install, re-configuration, or upgrade not supported. Please uninstall the agent before running this task."
7-
exit 1
6+
echo "WARNING: Puppet agent is already installed. Re-install, re-configuration, or upgrade not supported and might fail."
87
fi
98

109
flags=$(echo $PT_install_flags | sed -e 's/^\["*//' -e 's/"*\]$//' -e 's/", *"/ /g')

0 commit comments

Comments
 (0)