Issue #7354 has been reported by Jeff McCune.
----------------------------------------
Bug #7354: installer script exits prematurely on RHEL6
https://projects.puppetlabs.com/issues/7354
Author: Jeff McCune
Status: Unreviewed
Priority: Normal
Assignee: Jeff McCune
Category: installer
Target version: 1.x
Keywords: installer, rhel6, exit, eval
Branch:
Affected PE version:
# Overview #
On RHEL6, the puppet-enterprise-installer script exits immediately upon running
in RHEL6.
<pre>
[vagrant@rhel6_64 installer]$ sudo ./puppet-enterprise-installer
========================================================================================================================
cat: ./VERSION: No such file or directory
Puppet Enterprise v installer
for rhel-6-x86_64
------------------------------------------------------------------------------------------------------------------------
STEP 1: SELECT AND CONFIGURE PRODUCTS
This installer will offer to install puppet master, Puppet Dashboard and
puppet agent.
-> puppet master
The puppet master service manages the configurations of a group of puppet
agent nodes. It can optionally
integrate with Puppet Dashboard for reporting and node classification.
========================================================================================================================
!! ERROR: Cancelling installation
========================================================================================================================
</pre>
This seems to be related to set -e in combination with the following code:
<pre>
diff --git a/installer/puppet-enterprise-installer
b/installer/puppet-enterprise-installer
index 1c25cf0..ffb4cbb 100755
--- a/installer/puppet-enterprise-installer
+++ b/installer/puppet-enterprise-installer
@@ -441,8 +441,7 @@ ask() {
eval t_ask__answered=\$"${t_ask__name:-""}"
# Was the variable "$q" defined before the question was run, like if the
answer file defined it?
- (eval "echo \${${t_ask__name:-""}?}") > /dev/null 2>&1
- t_ask__defined=$?
+ eval '[ -n "${'"${t_ask__name:-}"'}" ] && t_ask__defined=0 ||
t_ask__defined=1'
t_ask__success=n
until [ y = "${t_ask__success?}" ]; do
~/vms/el6pe/enterprise-dist on feature/next/7336(1.0-14-gf295489)
</pre>
I have a patch to fix this. I will push to a ticket branch as soon as I have
the number.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.