Actions
Bug #6352
closedDefault install fails when hostname contains uppercase characters
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
Description
facter fqdn and hostname -f both return
HOSTNAME.domain.com
All config files (like httpd) are configured with this hostname in uppercase.
But the puppet cert that is generated is in lowercase.
Resulting in httpd not beeing able to start.
foreman-installer -i output:
Main Config Menu 1. [✓] Configure foreman_proxy 2. [✓] Configure puppet 3. [✓] Configure foreman 4. [✗] Configure foreman_plugin_puppetdb 5. [✗] Configure foreman_plugin_hooks 6. [✗] Configure foreman_compute_ec2 7. [✗] Configure foreman_compute_gce 8. [✓] Configure foreman_compute_ovirt 9. [✓] Configure foreman_compute_openstack 10. [✗] Configure foreman_compute_rackspace 11. [✓] Configure foreman_compute_vmware 12. [✗] Configure foreman_plugin_chef 13. [✗] Configure foreman_plugin_default_hostgroup 14. [✓] Configure foreman_compute_libvirt 15. [✓] Configure foreman_plugin_setup 16. [✗] Configure foreman_plugin_discovery 17. [✓] Configure foreman_plugin_bootdisk 18. [✓] Configure foreman_plugin_templates 19. Display current config 20. Save and run 21. Cancel run without Saving Choose an option from the menu... 20 /Stage[main]/Apache::Service/Service[httpd]/ensure: change from stopped to running failed: Could not start Service[httpd]: Execution of '/sbin/service httpd start' returned 1: at /usr/share/foreman-installer/modules/apache/manifests/service.pp:34 /Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]/ensure: change from stopped to running failed: Could not start Service[foreman-proxy]: Execution of '/sbin/service foreman-proxy start' returned 1: at /usr/share/foreman-installer/modules/foreman_proxy/manifests/service.pp:9 Installing Done [100%] [................] Something went wrong! Check the log for ERROR-level output The full log is at /var/log/foreman-installer/foreman-installer.log
# service httpd start Starting httpd: [Tue Jun 24 13:26:59 2014] [warn] module passenger_module is already loaded, skipping Syntax error on line 37 of /etc/httpd/conf.d/25-puppet.conf: SSLCertificateFile: file '/var/lib/puppet/ssl/certs/HOSTNAME.domain.com.pem' does not exist or is empty [FAILED]
There is a .pem file generated in /var/lib/puppet/certs/, but it is in lowercase.
I changed my hostname to lowercase, regenerated a cert, and it now works.
But this should be checked (warning) or worked around for easy deployment.
Actions