-
Notifications
You must be signed in to change notification settings - Fork 119
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
[PULP-265] Add docs about STORAGES settings #6158
Conversation
bf24d89
to
232986a
Compare
232986a
to
b14cc7e
Compare
b14cc7e
to
7b752a3
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.
Nice! Left some suggestions.
|
||
* The [`MEDIA_ROOT`](site:pulpcore/docs/admin/reference/settings/#media_root) setting specifies where Pulp | ||
will save the files. | ||
* Pulp customizes Django's default class, `django.core.files.storage.FileSystemStorage`. |
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.
Does that mean "Don't use the original one!"?
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.
Yes. Should I add this explicitly?
Pulp customizes Django's default class, `django.core.files.storage.FileSystemStorage`.
Don't use the original one.
The settings can be updated via the `settings.py` file or through environment variables | ||
and have support to dynaconf merge features (learn more on the [Settings Introduction](site:pulpcore/docs/admin/guides/configure-pulp/introduction/)). | ||
|
||
To learn where and how to modify the files and envvars, refer to the appropriate installation method documentation: |
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.
s/envvars/environment variables/
[Django docs](https://docs.djangoproject.com/en/4.2/ref/files/storage/#django.core.files.storage.FileSystemStorage). | ||
|
||
### Amazon S3 | ||
|
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.
I'm missing a note that other storage technologies that provide an S3 api will work too.
I'm thinking of Ceph/RADOS and minio here.
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.
That's useful, will mention that.
docs/admin/reference/settings.md
Outdated
As an example, an Amazon S3 might look like this: | ||
|
||
```python | ||
STORAGES = { | ||
"default": { | ||
"BACKEND": "storages.backends.s3.S3Storage", | ||
"OPTIONS": { | ||
"access_key": 'AKIAIT2Z5TDYPX3ARJBA', | ||
"secret_key": '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', | ||
"bucket_name": 'pulp3', | ||
"signature_version": "s3v4", | ||
"addressing_style": "path", | ||
"region_name": "eu-central-1", | ||
}, | ||
}, | ||
} | ||
``` |
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 is a copy from the very location you just linked. I would not do that, as it has the tendency to be outdated and forgotten when the one other place where it rightfully lives gets an update.
(personaly, my general advice: Don't duplicate anything in the docs. Rely on the power of hyperlinks. [we do check for broken links in the docs, right?])
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.
Fair.
we do check for broken links in the docs, right?
🙈
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.
I have experimented with a link checker. Will prioritize adding that to CI
2fa3bdd
to
eb3ec55
Compare
eb3ec55
to
28961f1
Compare
Squashed |
Depends on this to make sense: #6058
TODO: