-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb0b65a
commit d83ae91
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
# @summary Pulp Deb plugin | ||
class pulpcore::plugin::deb { | ||
# @param use_pulp2_content_route Whether to redirect the legacy (Pulp 2) URL, /pulp/deb/, to the content server | ||
class pulpcore::plugin::deb ( | ||
Boolean $use_pulp2_content_route = false, | ||
) { | ||
if $use_pulp2_content_route { | ||
$context = { | ||
'directories' => [ | ||
{ | ||
'provider' => 'location', | ||
'path' => '/pulp/deb', | ||
'proxy_pass' => [ | ||
{ | ||
'url' => $pulpcore::apache::content_url, | ||
}, | ||
], | ||
'request_headers' => [ | ||
'unset X-CLIENT-CERT', | ||
'set X-CLIENT-CERT "%{SSL_CLIENT_CERT}s" env=SSL_CLIENT_CERT', | ||
], | ||
}, | ||
], | ||
} | ||
$content = epp('pulpcore/apache-fragment.epp', $context) | ||
} else { | ||
$content = undef | ||
} | ||
|
||
pulpcore::plugin { 'deb': | ||
http_content => $content, | ||
https_content => $content, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters