Skip to content

Commit

Permalink
Merge pull request #14 from jlsherrill/post_sync
Browse files Browse the repository at this point in the history
adding post_sync_url secret token
  • Loading branch information
jlsherrill committed Feb 27, 2014
2 parents 186581a + ef0bd73 commit b72e9f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#
# $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 (
Expand All @@ -29,6 +32,8 @@
$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 {
Expand Down
3 changes: 3 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
$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/')
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/katello/katello.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ common:
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") %>
Expand Down

0 comments on commit b72e9f3

Please sign in to comment.