Install Katello on existing foreman

Hi,
when I installed foreman I thought it installed Katello too. Now I’m reading from Katello manual the installation on existing environment is not supported.

Is there a way to integrate Katello into foreman without reinstalling the whole environment?

Thanks,
Fabio

For a long time the general consensus has been that technically it should be possible but it’s largely untested. @Daniel_Lobato did try this earlier this week. He made some notes.

thanks @ekohl.
I tried to install as smart proxy but now I’m encountering an issue when running:

foreman-proxy-certs-generate --foreman-proxy-fqdn “myproxy.example.com
–certs-tar “~/myproxy.example.com-certs.tar”

that’s the output:

Installing Done [100%] […]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/foreman-proxy-certs-generate.log

Do you have the full log available?

Yes, but before uploading just a simple question (and I’m sorry for that but I never used foreman before): installing katello as smart proxy is like a plugin for foreman or, anyway, I still need to install katello package?

Hi,
I followed, again, the guide and I tried to run the command

foreman-installer --scenario katello

the scripts return me an error:

[ INFO 2018-02-12 10:05:33 verbose] Executing hooks in group pre_migrations
[ INFO 2018-02-12 10:05:33 verbose] All hooks in group pre_migrations finished
[ERROR 2018-02-12 10:05:33 verbose] You are trying to replace existing installation with different scenario. This may lead to unpredictable states. Use --force to override. You can use --compare-scenarios to see the differences
[ INFO 2018-02-12 10:05:33 verbose] Log was be written to /var/log/foreman-installer/katello.log
[ INFO 2018-02-12 10:05:33 verbose] Logs flushed
[root@ictfrmtsx01 katello]# foreman-installer --scenario katello --compare-scenarios
Scenarios are being compared, that may take a while…
/usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type.rb:31:in register_type': Data type Dhcp::Macaddress is already registered, cannot be re-registered (ArgumentError) from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type_parser.rb:22:inblock in register’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type_parser.rb:20:in each' from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type_parser.rb:20:inregister’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:343:in block (2 levels) in register_data_types' from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:342:ineach’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:342:in block in register_data_types' from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:341:ineach’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:341:in register_data_types' from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:96:inmodules’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:207:in params' from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:217:inpreset_defaults_from_puppet’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/scenario_manager.rb:208:in load_and_setup_configuration' from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/scenario_manager.rb:108:inshow_scenario_diff’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/scenario_manager.rb:115:in check_scenario_change' from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/kafo_configure.rb:78:ininitialize’
from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in new' from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:inrun’
from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/kafo_configure.rb:163:in run' from /usr/sbin/foreman-installer:8:in

at this point I don’t know if it’s better to perform a katello standalone installation or not. In that way is there a way to orchestrate through foreman?

I’m in a stuck and I force katello installation over foreman… I need both in my environment, so what’s the best way to install them in order to work together?
Thanks!

Installing Katello initially is the best, most tested way. We are working on supporting installing over existing Foreman installs, but that path may not be there yet.

thanks @John_Mitsch I scratched my machine and reinstalled Katello first.

i am getting the below error while installing smart proxy for externat puppet master. Also can any one share the required options for external puppet masters for centrally located katello server which is also act as central ca authority for all masters.

[root@frm-server03 abrt]# foreman-installer --scenario foreman-proxy-content --help
/usr/share/gems/gems/kafo-2.1.0/lib/kafo/data_type.rb:31:in register_type': Data type Dhcp::Macaddress is already registered, cannot be re-registered (ArgumentError) from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/data_type_parser.rb:22:inblock in register’
from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/data_type_parser.rb:20:in each' from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/data_type_parser.rb:20:inregister’
from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:352:in block (2 levels) in register_data_types' from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:351:ineach’
from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:351:in block in register_data_types' from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:350:ineach’
from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:350:in register_data_types' from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:97:inmodules’
from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:216:in params' from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/configuration.rb:226:inpreset_defaults_from_puppet’
from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/scenario_manager.rb:208:in load_and_setup_configuration' from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:289:inset_parameters’
from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:100:in initialize' from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:innew’
from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in run' from /usr/share/gems/gems/kafo-2.1.0/lib/kafo/kafo_configure.rb:163:inrun’
from /usr/sbin/foreman-installer:8:in `’
[root@frm-server03 abrt]#

Please help