[Katello 2.3] Capsule installer fails on CentOS 6.x with cannot create /var/www/html/pub

[root@dhcp1 ~]# capsule-installer --parent-fqdn "katello1.mydomain.net"
–register-in-foreman "true" --foreman-oauth-key "<key>"
–foreman-oauth-secret "<secret>" --certs-tar
"~/dhcp1.mydomain.net-certs.tar"
Cannot create /var/www/html/pub; parent directory /var/www/html does not
exist
/Stage[main]/Certs::Katello/File[/var/www/html/pub]/ensure: change from
absent to directory failed: Cannot create /var/www/html/pub; parent
directory /var/www/html does not exist
Installing Done
[100%]
[…]
Something went wrong! Check the log for ERROR-level output
The full log is at /var/log/capsule-installer/capsule-installer.log
[root@dhcp1 ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)

I have tried this in various versions of CentOS 6.5 - 6.7 and the result is
the same. I have also tried with different command line flags and modules
enabled, such as tftp, puppet, dhcp etc.

Log File

··· ------------ [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/boot/01-helpers.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/boot/10-reset_hook.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/boot/11-clear_pulp_data_hook.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/boot/12-clear_puppet_environments.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/boot/20-certs_update.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/boot/30-upgrade.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre/10-reset_feature.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre/11-clear_pulp_data_feature.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre/12-clear_puppet_environments_feature.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre/15-check_java.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre/16-set_umask.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre/20-certs_update.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre/30-upgrade.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/post/10-post_install.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/post/30-upgrade.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre_validations/10-check_capsule_pulp.rb [DEBUG 2015-12-20 11:25:51 main] Loading hook /usr/share/katello-installer/hooks/pre_validations/11-check_proxy_url.rb [ INFO 2015-12-20 11:25:51 main] Executing hooks in group boot [DEBUG 2015-12-20 11:25:51 main] Hook /usr/share/katello-installer/hooks/boot/01-helpers.rb returned nil [DEBUG 2015-12-20 11:25:51 main] Hook /usr/share/katello-installer/hooks/boot/10-reset_hook.rb returned # [DEBUG 2015-12-20 11:25:51 main] Hook /usr/share/katello-installer/hooks/boot/11-clear_pulp_data_hook.rb returned # [DEBUG 2015-12-20 11:25:51 main] Hook /usr/share/katello-installer/hooks/boot/12-clear_puppet_environments.rb returned # [DEBUG 2015-12-20 11:25:51 main] Hook /usr/share/katello-installer/hooks/boot/20-certs_update.rb returned # [DEBUG 2015-12-20 11:25:51 main] Hook /usr/share/katello-installer/hooks/boot/30-upgrade.rb returned # [ INFO 2015-12-20 11:25:51 main] All hooks in group boot finished [ INFO 2015-12-20 11:25:51 main] Executing hooks in group init [ INFO 2015-12-20 11:25:51 main] All hooks in group init finished [DEBUG 2015-12-20 11:25:51 main] Creating tmp dir within /etc/capsule-installer... [ INFO 2015-12-20 11:25:51 main] Loading default values from puppet modules... [DEBUG 2015-12-20 11:25:51 main] checking presence of /usr/share/katello-installer/modules/capsule/manifests/params.pp [DEBUG 2015-12-20 11:25:51 main] checking presence of /usr/share/katello-installer/modules/certs/manifests/params.pp [DEBUG 2015-12-20 11:25:51 main] echo '$kafo_config_file="/etc/capsule-installer/capsule-installer.yaml" $kafo_add_progress=true $temp_dir="/etc/capsule-installer/d20151220-19723-1am0i5z" include capsule::params include certs::params dump_values(capsule::params::foreman_proxy_http_port,"capsule::params::reverse_proxy_port","capsule::params::tftp","capsule::params::reverse_proxy","capsule::params::pulp_master","capsule::params::dhcp","capsule::params::virsh_network","capsule::params::bmc_default_provider","capsule::params::qpid_router_agent_addr","capsule::params::realm_provider","capsule::params::realm_principal","capsule::params::dns_ttl","capsule::params::foreman_oauth_key","capsule::params::dhcp_listen_on","capsule::params::realm_keytab","capsule::params::dns_reverse","capsule::params::dns_zone","capsule::params::dhcp_vendor","capsule::params::tftp_root","capsule::params::foreman_oauth_secret","capsule::params::qpid_router_hub_port","capsule::params::dhcp_managed","capsule::params::templates","capsule::params::pulp_oauth_effective_user",capsule::params::tftp_syslinux_files,capsule::params::dhcp_option_domain,"capsule::params::dns_tsig_keytab","capsule::params::dns_tsig_principal","capsule::params::tftp_servername","capsule::params::foreman_proxy_http","capsule::params::qpid_router_broker_addr","capsule::params::puppetca","capsule::params::dns_managed","capsule::params::puppet_ca_proxy",capsule::params::tftp_dirs,"capsule::params::bmc","capsule::params::register_in_foreman","capsule::params::pulp_oauth_secret","capsule::params::dhcp_interface","capsule::params::dhcp_key_name","capsule::params::dhcp_key_secret","capsule::params::dhcp_range",capsule::params::foreman_proxy_port,"capsule::params::dhcp_config","capsule::params::pulp","capsule::params::freeipa_remove_dns","capsule::params::dns_provider","capsule::params::parent_fqdn","capsule::params::dns_server",capsule::params::dns_forwarders,"capsule::params::foreman_oauth_effective_user","capsule::params::pulp_oauth_key","capsule::params::dhcp_nameservers","capsule::params::qpid_router_broker_port","capsule::params::tftp_syslinux_root","capsule::params::dns","capsule::params::rhsm_url","capsule::params::qpid_router","capsule::params::pulp_admin_password","capsule::params::dhcp_gateway","capsule::params::dhcp_leases","capsule::params::qpid_router_hub_addr","capsule::params::realm","capsule::params::dns_interface","capsule::params::certs_tar","capsule::params::puppet","capsule::params::qpid_router_agent_port","certs::params::node_fqdn","certs::params::log_dir","certs::params::generate","certs::params::ca_expiration","certs::params::user","certs::params::server_cert_req","certs::params::state","certs::params::server_cert","certs::params::server_key","certs::params::server_ca_cert","certs::params::pki_dir","certs::params::password_file_dir","certs::params::default_ca_name","certs::params::server_ca_name","certs::params::regenerate_ca","certs::params::deploy","certs::params::org","certs::params::expiration","certs::params::group","certs::params::regenerate","certs::params::country","certs::params::ssl_build_dir","certs::params::ca_common_name","certs::params::city","certs::params::org_unit")' > RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.11/lib/kafo/../..//modules: puppet apply --modulepath /usr/share/katello-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.11/modules 2>&1 [DEBUG 2015-12-20 11:25:51 main] e[mNotice: Compiled catalog for dhcp1.mydomain.net in environment production in 0.99 secondse[0m e[mNotice: Finished catalog run in 0.05 secondse[0m

[ INFO 2015-12-20 11:25:51 main] … finished
[ INFO 2015-12-20 11:25:51 main] Executing hooks in group pre_values
[ INFO 2015-12-20 11:25:51 main] All hooks in group pre_values finished
[ INFO 2015-12-20 11:25:51 main] Executing hooks in group pre_validations
[DEBUG 2015-12-20 11:25:51 main] Hook
/usr/share/katello-installer/hooks/pre_validations/10-check_capsule_pulp.rb
returned nil
[DEBUG 2015-12-20 11:25:51 main] Hook
/usr/share/katello-installer/hooks/pre_validations/11-check_proxy_url.rb
returned nil
[ INFO 2015-12-20 11:25:51 main] All hooks in group pre_validations finished
[ INFO 2015-12-20 11:25:51 main] Running validation checks
[ INFO 2015-12-20 11:25:52 main] Executing hooks in group pre_commit
[ INFO 2015-12-20 11:25:52 main] All hooks in group pre_commit finished
[ INFO 2015-12-20 11:25:52 main] Executing hooks in group pre
[DEBUG 2015-12-20 11:25:52 main] Hook
/usr/share/katello-installer/hooks/pre/10-reset_feature.rb returned nil
[DEBUG 2015-12-20 11:25:52 main] Hook
/usr/share/katello-installer/hooks/pre/11-clear_pulp_data_feature.rb
returned nil
[DEBUG 2015-12-20 11:25:52 main] Hook
/usr/share/katello-installer/hooks/pre/12-clear_puppet_environments_feature.rb
returned nil
[DEBUG 2015-12-20 11:25:52 main] Hook
/usr/share/katello-installer/hooks/pre/15-check_java.rb returned nil
[DEBUG 2015-12-20 11:25:52 main] Hook
/usr/share/katello-installer/hooks/pre/16-set_umask.rb returned nil
[DEBUG 2015-12-20 11:25:52 main] Hook
/usr/share/katello-installer/hooks/pre/20-certs_update.rb returned nil
[DEBUG 2015-12-20 11:25:52 main] Hook
/usr/share/katello-installer/hooks/pre/30-upgrade.rb returned nil
[ INFO 2015-12-20 11:25:52 main] All hooks in group pre finished
[DEBUG 2015-12-20 11:25:52 main] echo
’$kafo_config_file="/etc/capsule-installer/capsule-installer.yaml"
$kafo_add_progress=true include kafo_configure’ |
RUBYLIB=/usr/lib/ruby/gems/1.8/gems/kafo-0.6.11/lib/kafo/…/…//modules:
puppet apply --verbose --debug --trace --color=false --show_diff
–detailed-exitcodes --modulepath
/usr/share/katello-installer/modules:/usr/lib/ruby/gems/1.8/gems/kafo-0.6.11/modules

[DEBUG 2015-12-20 11:25:52 main] Runtime environment:
puppet_version=3.8.4, run_mode=user, ruby_version=1.8.7
[DEBUG 2015-12-20 11:25:52 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:52 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:52 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:52 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:52 main] Loading external facts from
/var/lib/puppet/facts.d
[ INFO 2015-12-20 11:25:52 main] Loading facts
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/apt/lib/facter/apt_updates.rb
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/apt/lib/facter/apt_update_last_success.rb
[ INFO 2015-12-20 11:25:52 main] Loading facts
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/concat/lib/facter/concat_basedir.rb
[ INFO 2015-12-20 11:25:52 main] Loading facts
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/mysql/lib/facter/mysql_server_id.rb
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/mysql/lib/facter/mysql_version.rb
[ INFO 2015-12-20 11:25:52 main] Loading facts
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/firewall/lib/facter/iptables_persistent_version.rb
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/firewall/lib/facter/iptables_version.rb
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/firewall/lib/facter/ip6tables_version.rb
[ INFO 2015-12-20 11:25:52 main] Loading facts
[DEBUG 2015-12-20 11:25:52 main] Loading facts from
/usr/share/katello-installer/modules/pulp/lib/facter/facts.rb
[ INFO 2015-12-20 11:25:53 main] Loading facts
[DEBUG 2015-12-20 11:25:53 main] Loading facts from
/usr/share/katello-installer/modules/foreman/lib/facter/sssd.rb
[ INFO 2015-12-20 11:25:53 main] Loading facts
[DEBUG 2015-12-20 11:25:53 main] Loading facts from
/usr/share/katello-installer/modules/stdlib/lib/facter/facter_dot_d.rb
[DEBUG 2015-12-20 11:25:53 main] Loading facts from
/usr/share/katello-installer/modules/stdlib/lib/facter/puppet_vardir.rb
[DEBUG 2015-12-20 11:25:53 main] Loading facts from
/usr/share/katello-installer/modules/stdlib/lib/facter/pe_version.rb
[DEBUG 2015-12-20 11:25:53 main] Loading facts from
/usr/share/katello-installer/modules/stdlib/lib/facter/root_home.rb
[ INFO 2015-12-20 11:25:53 main] Loading facts
[DEBUG 2015-12-20 11:25:53 main] Loading facts from
/usr/share/katello-installer/modules/staging/lib/facter/staging_http_get.rb
[DEBUG 2015-12-20 11:25:53 main] Loading facts from
/usr/share/katello-installer/modules/staging/lib/facter/staging_windir.rb
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:55 main] importing
’/usr/lib/ruby/gems/1.8/gems/kafo-0.6.11/modules/kafo_configure/manifests/init.pp’
in environment production
[DEBUG 2015-12-20 11:25:55 main] Automatically imported kafo_configure
from kafo_configure into production
[DEBUG 2015-12-20 11:25:55 main] importing
’/usr/lib/ruby/gems/1.8/gems/kafo-0.6.11/modules/kafo_configure/manifests/yaml_to_class.pp’
in environment production
[DEBUG 2015-12-20 11:25:55 main] Automatically imported
kafo_configure::yaml_to_class from kafo_configure/yaml_to_class into
production
[DEBUG 2015-12-20 11:25:55 main] importing
’/usr/share/katello-installer/modules/certs/manifests/init.pp’ in
environment production
[DEBUG 2015-12-20 11:25:55 main] Automatically imported certs from certs
into production
[DEBUG 2015-12-20 11:25:55 main] importing
’/usr/share/katello-installer/modules/certs/manifests/params.pp’ in
environment production
[DEBUG 2015-12-20 11:25:55 main] Automatically imported certs::params from
certs/params into production
[DEBUG 2015-12-20 11:25:55 main] importing
’/usr/share/katello-installer/modules/capsule/manifests/init.pp’ in
environment production
[DEBUG 2015-12-20 11:25:55 main] Automatically imported capsule from
capsule into production
[DEBUG 2015-12-20 11:25:55 main] importing
’/usr/share/katello-installer/modules/capsule/manifests/params.pp’ in
environment production
[DEBUG 2015-12-20 11:25:55 main] Automatically imported capsule::params
from capsule/params into production
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[ WARN 2015-12-20 11:25:55 main] Config file /etc/puppet/hiera.yaml not
found, using Hiera defaults
[DEBUG 2015-12-20 11:25:55 main] hiera(): Hiera YAML backend starting
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking up
certs::server_cert_req in YAML backend
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking for data source common
[DEBUG 2015-12-20 11:25:55 main] hiera(): Cannot find datafile
/var/lib/hiera/common.yaml, skipping
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking up certs::server_key in
YAML backend
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking for data source common
[DEBUG 2015-12-20 11:25:55 main] hiera(): Cannot find datafile
/var/lib/hiera/common.yaml, skipping
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking up certs::server_cert in
YAML backend
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking for data source common
[DEBUG 2015-12-20 11:25:55 main] hiera(): Cannot find datafile
/var/lib/hiera/common.yaml, skipping
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking up certs::server_ca_cert
in YAML backend
[DEBUG 2015-12-20 11:25:55 main] hiera(): Looking for data source common
[DEBUG 2015-12-20 11:25:55 main] hiera(): Cannot find datafile
/var/lib/hiera/common.yaml, skipping
[DEBUG 2015-12-20 11:25:55 main] importing
’/usr/share/katello-installer/modules/certs/manifests/install.pp’ in
environment production
[DEBUG 2015-12-20 11:25:55 main] Automatically imported certs::install
from certs/install into production
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:55 main] Evicting cache entry for environment
’production’
[DEBUG 2015-12-20 11:25:55 main] Caching environment ‘production’ (ttl = 0
sec)
[DEBUG 2015-12-20 11:25:55 main] Exec

Strangely enough if I enable puppet and puppetCA and let them install
apache, I don't get the error.

If I then set puppet and puppetCA to false, it will remove puppet CA but
not puppet. Also, the error will not show up when removing them because it
leaves apache behind and the var/www/html directory exists.

Is this intended? All I want is a simple foreman dhcp proxy on this thing,
not all this other stuff, but this seems to be a requirement of having
Katello as your main server?

Even stranger is the fact that when I try to create a new host in Katello
now, and select the Location that the new dhcp proxy is in, I am not longer
to select my Katello server as a Content host (although it is available to
all locations and organizations), and only the dhcp server is available as
a content host. That is definitely not right. It doesn't have pulp
installed so should not have any content at all. It's just a tftp / dhcp
proxy.