-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #30436 - add allowed_export_paths to settings.py #147
Conversation
This comment has been minimized.
This comment has been minimized.
a3978d0
to
73351dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jeremylenz thanks for this PR!
I have a few questions to better understand:
-
Do you consider the change to default
$allowed_import_path
to fall under the same Redmine? Should it be split into a separate commit, or separate PR and Redmine entirely? -
Should this configuration be the same for standalone pulp3, pulp3 on katello, and pulp3 on content proxy? This module is used for both the katello and foreman_proxy_content installer scenarios and unless the configuration should be the same in both cases, we should expose the new parameter in puppet-foreman_proxy_content so that the installer can pass different values of the parameter per scenario.
@wbclark good questions! For item 1 the change is related and small enough that I think it can stay here in this PR and redmine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thinking about it a bit, content proxies shouldn't need CV import/export since they sync directly from Katello
So I think we should make the following changes:
-
This PR should include only the new parameter for $allowed_export_path
-
A second PR should be opened in puppet-FPC which exposes $allowed_{import,export}_path parameters at https://github.com/theforeman/puppet-foreman_proxy_content/blob/master/manifests/init.pp#L371-L394
-
A 3rd PR should be opened in foreman-installer which overrides the default $allowed_{import,export}_path parameters for the Katello scenario only, and also defines a migration for the Katello scenario that sets the proper values of the parameters for users who already installed
@wbclark, Thanks for guiding this newbie 👍
updated
Opened theforeman/puppet-foreman_proxy_content#297
Opened theforeman/foreman-installer#615 Let me know how they look.. |
Hey @jeremylenz thanks for the effort here! It's coming together nicely. I left one comment above about setting defaults that make sense for pulp3 on its own. The other thing I want to mention, following a similar line of reasoning, is the parameter documentation making references to concepts like Katello and Content Views, which pulpcore itself has no concept of. I think having more neutral documentation (see @ekohl 's suggestion referencing the pulpcore docs) makes sense here, while in puppet-FPC we can document the relevance to Katello users. I also realize I am saying this that some of those references were already here before your PR (in the ERB...) -- sorry that you inherited that and let us know if we can assist with cleaning it up. :) |
@wbclark thanks, updated! |
spec/classes/pulpcore_spec.rb
Outdated
it do | ||
is_expected.to compile.with_all_deps | ||
is_expected.to contain_concat__fragment('base') | ||
.with_content(%r{ALLOWED_EXPORT_PATHS = \[\]}) | ||
|
||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches the default. I'd move this to the section that starts at line 19. We should probably do the same for import paths.
f10d04f
to
5b0d8ce
Compare
@ekohl updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this was merged. I still had comments about the specs and it was not addressed as I suggested. I also think this should have been squashed and not as 6 separate commits.
Sorry, it looked like your comment had been resolved. I do wish Github would warn me when there are multiple commits, that was my bad. |
As part of the new content view import/export API work, we need to be able to add import & export paths to
settings.py
:This PR will be modeled on #79 and adds
ALLOWED_EXPORT_PATHS
.