Skip to content

Commit 95e4cd9

Browse files
authored
Merge pull request #223 from puppetlabs/fail-agent_install-on-reinstall
Fail agent_install if agent is already installed
2 parents 53c8968 + 41e55ad commit 95e4cd9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

documentation/install.md

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ When installing a new PE cluster using peadm, there are several different host p
3333

3434
Supplying a combination of host parameters which does not match one of the supported architectures above will result in an unsupported architecture error.
3535

36+
## Requirements
37+
38+
* Puppet must not be installed on any of the target PE cluster hosts prior to beginning install.
39+
3640
## Usage
3741

3842
### Bolt 3 usage

tasks/agent_install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
set -e
44

5+
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
8+
fi
9+
510
flags=$(echo $PT_install_flags | sed -e 's/^\["*//' -e 's/"*\]$//' -e 's/", *"/ /g')
611

712
curl -k "https://${PT_server}:8140/packages/current/install.bash" | bash -s -- $flags

0 commit comments

Comments
 (0)