Project

General

Profile

« Previous | Next » 

Revision ef0bd735

Added by Justin Sherrill over 10 years ago

adding post_sync_url secret token

View differences:

manifests/init.pp
#
# $oauth_secret:: The oauth secret for talking to the candlepin API;
#
# $post_sync_token:: The shared secret for pulp notifying katello about
# completed syncs
#
# $log_dir:: Location for Katello log files to be placed
#
class katello (
......
$oauth_key = $katello::params::oauth_key,
$oauth_secret = $katello::params::oauth_secret,
$post_sync_token = $katello::params::post_sync_token,
$log_dir = $katello::params::log_dir
) inherits katello::params {
manifests/params.pp
$oauth_token_file = '/etc/katello/oauth_token-file'
$oauth_secret = find_or_create_password($oauth_token_file)
$post_sync_token_file = '/etc/katello/post_sync_token'
$post_sync_token = find_or_create_password($post_sync_token_file)
# Subsystems settings
$candlepin_url = 'https://localhost:8443/candlepin'
$pulp_url = subsystem_url('pulp/api/v2/')
templates/etc/katello/katello.yml.erb
use_ssl: true
use_foreman: <%= scope.lookupvar("katello::params::use_foreman") %>
post_sync_url: http://localhost:5000/<%= scope.lookupvar("katello::params::deployment_url") %>/api/repositories/sync_complete
post_sync_url: https://localhost<%= scope.lookupvar("katello::params::deployment_url") %>/api/v2/repositories/sync_complete?token=<%= scope.lookupvar("post_sync_token") %>
candlepin:
url: <%= scope.lookupvar("katello::params::candlepin_url") %>

Also available in: Unified diff