diff --git a/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb b/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb index b19514ae0d3..fbc84205d68 100644 --- a/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb +++ b/app/views/unattended/provisioning_templates/host_init_config/host_init_config_default.erb @@ -42,6 +42,11 @@ exit_and_cancel_build() { set +e trap 'exit_and_cancel_build' ERR +<% if plugin_present?('katello') && @host.operatingsystem.family == 'Debian' -%> +export DEBIAN_FRONTEND=noninteractive +apt-get -y update +<% end -%> + <% if !host_param_true?('skip-puppet-setup') && (host_puppet_server.present? || host_param_true?('force-puppet')) -%> <%= snippet 'puppetlabs_repo' %> <%= snippet 'puppet_setup' %>