Skip to content

Commit

Permalink
fixes #15058 - enable mongo auth
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam committed May 17, 2016
1 parent 3c6a646 commit 65af47a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
#
# $repo_export_dir:: Directory to create for repository exports
#
# $pulp_db_username:: Username for the pulp database
#
# $pulp_db_password:: Password for the pulp database
#
class katello (

$user = $katello::params::user,
Expand Down Expand Up @@ -73,6 +77,9 @@
$max_keep_alive = $katello::params::max_keep_alive,

$repo_export_dir = $katello::params::repo_export_dir,

$pulp_db_username = $katello::params::pulp_db_username,
$pulp_db_password = $katello::params::pulp_db_password,
) inherits katello::params {
validate_bool($enable_ostree)
validate_integer($max_keep_alive)
Expand Down Expand Up @@ -136,6 +143,8 @@
num_workers => $num_pulp_workers,
enable_parent_node => false,
repo_auth => false,
db_username => $pulp_db_username,
db_password => $pulp_db_password,
} ~>
class { '::qpid::client':
ssl => true,
Expand Down
3 changes: 3 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@

$num_pulp_workers = min($::processorcount, 8)

$pulp_db_username = 'pulp'
$pulp_db_password = cache_data('foreman_cache_data', 'pulp_db_password', random_password(32))

# cdn ssl settings
$cdn_ssl_version = undef

Expand Down

0 comments on commit 65af47a

Please sign in to comment.