Puppet server installation in debian fails with the theforeman-puppet module

Problem:
I am trying to install puppet server in a ubuntu host following the usage instruction as given here:

I am using the standalone mode to be exact, where it says to use this method:

To use this in standalone mode, edit a file (e.g. install.pp), put in a class resource, as per the examples above, and the execute puppet apply e.g:

cat > install.pp <<EOF
class { '::puppet': server => true }
EOF
puppet apply install.pp --modulepath /path_to/extracted_tarball

However, I am getting the following error:

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet-master' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package puppet-master
Error: /Stage[main]/Puppet::Server::Install/Package[puppet-master]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet-master' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package puppet-master
Notice: /Stage[main]/Puppet::Server::Install/User[puppet]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Install/User[puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Config/File[/etc/puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack/public]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack/public]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack/tmp]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack/tmp]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack/config.ru]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Rack/File[/etc/puppet/rack/config.ru]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/var/lib/puppet/reports]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/var/lib/puppet/reports]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Exec[mkdir -p /usr/share/puppet/modules]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Exec[mkdir -p /usr/share/puppet/modules]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-create_ssl_dir]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-create_ssl_dir]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/var/lib/puppet/ssl/private_keys]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/var/lib/puppet/ssl/private_keys]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/var/lib/puppet/ssl/private_keys/hostname.example.com.pem]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/var/lib/puppet/ssl/private_keys/hostname.example.com.pem]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/autosign.conf]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/autosign.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/code/environments]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/code/environments]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/usr/share/puppet]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/usr/share/puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/code/environments/common]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/code/environments/common]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/code/modules]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/etc/puppet/code/modules]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/File[/usr/share/puppet/modules]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/File[/usr/share/puppet/modules]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/Concat[/etc/puppet/puppet.conf]/Concat_file[/etc/puppet/puppet.conf]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Config/Concat[/etc/puppet/puppet.conf]/Concat_file[/etc/puppet/puppet.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/Concat[/etc/puppet/puppet.conf]/File[/etc/puppet/puppet.conf]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Config/Concat[/etc/puppet/puppet.conf]/File[/etc/puppet/puppet.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Config/File[/etc/puppet/auth.conf]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Config/File[/etc/puppet/auth.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat[25-puppet.conf]/Concat_file[25-puppet.conf]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat[25-puppet.conf]/Concat_file[25-puppet.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat[25-puppet.conf]/File[/etc/apache2/sites-available/25-puppet.conf]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat[25-puppet.conf]/File[/etc/apache2/sites-available/25-puppet.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/File[25-puppet.conf symlink]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/File[25-puppet.conf symlink]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-apache-header]/Concat_fragment[puppet-apache-header]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-apache-header]/Concat_fragment[puppet-apache-header]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-docroot]/Concat_fragment[puppet-docroot]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-docroot]/Concat_fragment[puppet-docroot]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-directories]/Concat_fragment[puppet-directories]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-directories]/Concat_fragment[puppet-directories]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-logging]/Concat_fragment[puppet-logging]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-logging]/Concat_fragment[puppet-logging]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-serversignature]/Concat_fragment[puppet-serversignature]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-serversignature]/Concat_fragment[puppet-serversignature]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-access_log]/Concat_fragment[puppet-access_log]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-access_log]/Concat_fragment[puppet-access_log]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-requestheader]/Concat_fragment[puppet-requestheader]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-requestheader]/Concat_fragment[puppet-requestheader]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-ssl]/Concat_fragment[puppet-ssl]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-ssl]/Concat_fragment[puppet-ssl]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-passenger]/Concat_fragment[puppet-passenger]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-passenger]/Concat_fragment[puppet-passenger]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-file_footer]/Concat_fragment[puppet-file_footer]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Concat::Fragment[puppet-file_footer]/Concat_fragment[puppet-file_footer]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Apache::Listen[8140]/Concat::Fragment[Listen 8140]/Concat_fragment[Listen 8140]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Passenger/Apache::Vhost[puppet]/Apache::Listen[8140]/Concat::Fragment[Listen 8140]/Concat_fragment[Listen 8140]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[reports]/Puppet::Config::Entry[mainreports]/Concat::Fragment[puppet.conf_main_reports]/Concat_fragment[puppet.conf_main_reports]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[reports]/Puppet::Config::Entry[mainreports]/Concat::Fragment[puppet.conf_main_reports]/Concat_fragment[puppet.conf_main_reports]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[hiera_config]/Puppet::Config::Entry[mainhiera_config]/Concat::Fragment[puppet.conf_main_hiera_config]/Concat_fragment[puppet.conf_main_hiera_config]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[hiera_config]/Puppet::Config::Entry[mainhiera_config]/Concat::Fragment[puppet.conf_main_hiera_config]/Concat_fragment[puppet.conf_main_hiera_config]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[environmentpath]/Puppet::Config::Entry[mainenvironmentpath]/Concat::Fragment[puppet.conf_main_environmentpath]/Concat_fragment[puppet.conf_main_environmentpath]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[environmentpath]/Puppet::Config::Entry[mainenvironmentpath]/Concat::Fragment[puppet.conf_main_environmentpath]/Concat_fragment[puppet.conf_main_environmentpath]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[basemodulepath]/Puppet::Config::Entry[mainbasemodulepath]/Concat::Fragment[puppet.conf_main_basemodulepath]/Concat_fragment[puppet.conf_main_basemodulepath]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Main[basemodulepath]/Puppet::Config::Entry[mainbasemodulepath]/Concat::Fragment[puppet.conf_main_basemodulepath]/Concat_fragment[puppet.conf_main_basemodulepath]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[autosign]/Puppet::Config::Entry[master_autosign]/Concat::Fragment[puppet.conf_master]/Concat_fragment[puppet.conf_master]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[autosign]/Puppet::Config::Entry[master_autosign]/Concat::Fragment[puppet.conf_master]/Concat_fragment[puppet.conf_master]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[autosign]/Puppet::Config::Entry[master_autosign]/Concat::Fragment[puppet.conf_master_autosign]/Concat_fragment[puppet.conf_master_autosign]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[autosign]/Puppet::Config::Entry[master_autosign]/Concat::Fragment[puppet.conf_master_autosign]/Concat_fragment[puppet.conf_master_autosign]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[ca]/Puppet::Config::Entry[master_ca]/Concat::Fragment[puppet.conf_master_ca]/Concat_fragment[puppet.conf_master_ca]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[ca]/Puppet::Config::Entry[master_ca]/Concat::Fragment[puppet.conf_master_ca]/Concat_fragment[puppet.conf_master_ca]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[certname]/Puppet::Config::Entry[master_certname]/Concat::Fragment[puppet.conf_master_certname]/Concat_fragment[puppet.conf_master_certname]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[certname]/Puppet::Config::Entry[master_certname]/Concat::Fragment[puppet.conf_master_certname]/Concat_fragment[puppet.conf_master_certname]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[parser]/Puppet::Config::Entry[master_parser]/Concat::Fragment[puppet.conf_master_parser]/Concat_fragment[puppet.conf_master_parser]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[parser]/Puppet::Config::Entry[master_parser]/Concat::Fragment[puppet.conf_master_parser]/Concat_fragment[puppet.conf_master_parser]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[strict_variables]/Puppet::Config::Entry[master_strict_variables]/Concat::Fragment[puppet.conf_master_strict_variables]/Concat_fragment[puppet.conf_master_strict_variables]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[strict_variables]/Puppet::Config::Entry[master_strict_variables]/Concat::Fragment[puppet.conf_master_strict_variables]/Concat_fragment[puppet.conf_master_strict_variables]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[ssldir]/Puppet::Config::Entry[master_ssldir]/Concat::Fragment[puppet.conf_master_ssldir]/Concat_fragment[puppet.conf_master_ssldir]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Config/Puppet::Config::Master[ssldir]/Puppet::Config::Entry[master_ssldir]/Concat::Fragment[puppet.conf_master_ssldir]/Concat_fragment[puppet.conf_master_ssldir]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Service/Service[puppet-master]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Service/Service[puppet-master]: Skipping because of failed dependencies
Notice: /Stage[main]/Apache::Service/Service[httpd]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Apache::Service/Service[httpd]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Server::Service/Exec[restart_puppetmaster]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Server::Service/Exec[restart_puppetmaster]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service/Anchor[puppet::agent::service_start]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service/Anchor[puppet::agent::service_start]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service::Daemon/Service[puppet]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service::Daemon/Service[puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service::Systemd/Service[puppet-run.timer]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service::Systemd/Service[puppet-run.timer]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service::Systemd/File[/etc/systemd/system/puppet-run.timer]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service::Systemd/File[/etc/systemd/system/puppet-run.timer]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service::Systemd/File[/etc/systemd/system/puppet-run.service]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service::Systemd/File[/etc/systemd/system/puppet-run.service]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service::Systemd/Exec[systemctl-daemon-reload-puppet]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service::Systemd/Exec[systemctl-daemon-reload-puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service::Cron/Cron[puppet]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service::Cron/Cron[puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Puppet::Agent::Service/Anchor[puppet::agent::service_end]: Dependency Package[puppet-master] has failures: true
Warning: /Stage[main]/Puppet::Agent::Service/Anchor[puppet::agent::service_end]: Skipping because of failed dependencies
Error: /Stage[main]/R10k::Install/Package[r10k]: Provider puppet_gem is not functional on this host
Notice: /Stage[main]/R10k::Install::Puppet_gem/File[/usr/bin/r10k]: Dependency Package[r10k] has failures: true
Warning: /Stage[main]/R10k::Install::Puppet_gem/File[/usr/bin/r10k]: Skipping because of failed dependencies
Notice: Applied catalog in 6.90 seconds

Expected outcome:

Puppet server should be installed.

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Other relevant data:
I think this is happening because the name of the package is puppet-master in the install manifest - https://github.com/theforeman/puppet-puppet/blob/master/manifests/server/install.pp#L30

Whereas there is no package called puppet-master present in the system. Any thought?

This will probably be in @ekohl’s alley. Tagging him.

I guess you’re using the native OS puppet 5.x package on Ubuntu/bionic?

If you want to use the Clojure based puppetserver, use PuppetLabs’ AIO puppet-agent package.

The “old style” Ruby puppetmaster is deprecated and also with 4.x we’re already seeing problems: https://github.com/theforeman/puppet-puppet/issues/578

Just to be absolutely clear, the theforeman-puppet module sets up puppetmaster, which happens to be deprecated. Is that right? I think it is as far as I can read the code.

If so, then perhaps it should be mentioned in the README.md file. What do you think?

Please open an issue in puppet-puppet on GitHub, with details about Puppet and OS versions. We’ll work something out, then. At least with 4.x, the Ruby based puppetmaster should still work.