Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail peadm::pe_install task when installer fails #75

Merged
merged 1 commit into from Mar 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions tasks/pe_install.sh
Expand Up @@ -26,6 +26,9 @@ else
/bin/bash "${tgzdir}/${pedir}/puppet-enterprise-installer" -y
fi

# The exit code of the installer script will be the exit code of the task
exit_code=$?

if [ "$PT_shortcircuit_puppetdb" = "true" ]; then
systemctl stop pe-puppetdb.service
rm /etc/systemd/system/pe-puppetdb.service.d/10-shortcircuit.conf
Expand All @@ -35,3 +38,6 @@ fi
if [ "$PT_puppet_service_ensure" = "stopped" ]; then
systemctl stop puppet.service
fi

# Exit with the installer script's exit code
exit $exit_code