Project

General

Profile

Bug #2442

Foreman Installer requires puppet-server when it shouldn't. HTTP won't start, either.

Added by Matthew Barr over 6 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Urgent
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Using Centos 6.4:
foreman-1.1stable-3.el6.noarch
foreman-proxy-1.1stable-1.el6.noarch
foreman-release-1.1stable-3.el6.noarch
foreman-installer-1.1.1-1.noarch
foreman-sqlite-1.1stable-3.el6.noarch

and an answers file of:
---
puppet: false
foreman_proxy:
dhcp: true
puppetca: false
puppetrun: false
puppetmaster: false
foreman: true

I see the installer try to install puppet-server, (only once, though.)
The puppet-server dependency doesn't seem to persist into the 2nd run, manually, but the following does:

Fail to start httpd, due to the presence of :
/etc/httpd/conf.d/puppet.conf

(it has the SSL keys in that conf, so that http fails.)


Related issues

Has duplicate Installer - Bug #2446: installer adds a lot of unneeded configurations incorrectlyClosed2013-04-30

Associated revisions

Revision c9d40d48 (diff)
Added by Greg Sutcliffe over 6 years ago

Fixes #2442 - Write the answers file before running puppet

Revision 6cbf752a (diff)
Added by Greg Sutcliffe over 6 years ago

Fixes #2442 - Write the answers file before running puppet
(cherry picked from commit c9d40d485254c72e02a59bdd36ac747f83c239da)

History

#1 Updated by Dominic Cleal over 6 years ago

  • Project changed from Foreman to Installer

#2 Updated by Dominic Cleal over 6 years ago

  • Priority changed from Normal to High
  • Target version set to 27

#3 Updated by Dominic Cleal over 6 years ago

  • Status changed from New to Feedback

Can you confirm the path of the answers file you edited please?

#4 Updated by Matthew Barr over 6 years ago

/usr/share/foreman-installer/foreman_installer/answers.yaml

And it was the output of the installer script,
ruby /usr/share/foreman-installer/generate_answers.rb

Not edited by hand.

#5 Updated by Dominic Cleal over 6 years ago

  • Status changed from Feedback to Assigned
  • Assignee set to Greg Sutcliffe
  • Priority changed from High to Urgent

Greg's figured this out and pushed a fix, we'll update the 1.1 installer too as it's severe. Thanks for the report!

It was an ordering issue where if you selected "yes" to run Puppet immediately in the installer, it would run Puppet and then write out the answers file, so it would do the Puppet run using the default options. If you selected "no", it would just write out the file and then give you the command to run Puppet.

#6 Updated by Dominic Cleal over 6 years ago

  • Status changed from Assigned to Resolved

foreman-installer 1.1.2 has been released with the patch.

#7 Updated by Dominic Cleal over 6 years ago

  • Target version changed from 27 to 1.2.0

#8 Updated by Greg Sutcliffe about 1 year ago

  • Target version deleted (1.2.0)

Also available in: Atom PDF