Sha256: 1a5dd866a2720348ee12f408e29110a4c6a0d8d9930171f95e07e491c8154905

Contents?: true

Size: 887 Bytes

Versions: 23

Compression:

Stored size: 887 Bytes

Contents

<%#
kind: job_template
name: Configure host for new content source
job_category: Katello
model: JobTemplate
provider_type: script
description_format: Configure subscription manager for new content source
feature: katello_change_content_source
%>
#!/bin/sh

# This job template alone will NOT change a host's content source!
# It is invoked after changing a host's content source on the server,
# which is done from the Change Content Source page in the web UI.

<%= configure_host_for_new_content_source(@host, foreman_server_ca_cert) %>

# If REX pull mode is enabled, update yggdrasil config to pull from the new content source.
# If host is not configured for REX pull mode, this is a noop.

if [ -f /etc/yggdrasil/config.toml ]; then
  cp /etc/yggdrasil/config.toml /etc/yggdrasil/config.toml.bak
  export YGGDRASIL_RESTART_DELAY=10
  <%= snippet 'remote_execution_pull_setup' %>
fi

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.15.0.rc1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.14.1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.14.0 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.14.0.rc3 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.14.0.rc2 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.14.0.rc1.1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.14.0.rc1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.13.1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.13.0 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.12.1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.13.0.rc1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.12.0 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.12.0.rc3 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.12.0.rc2 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.12.0.rc1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.11.1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.11.0 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.11.0.rc2 app/views/foreman/job_templates/configure_host_for_new_content_source.erb
katello-4.11.0.rc1 app/views/foreman/job_templates/configure_host_for_new_content_source.erb