docs: add a tip to add extra settings through configmaps or secrets and improve an example for that #1824
+62
−49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
The page "Custom volume and volume mount options" contains an example of mounting
custom.py
under/etc/tower/conf.d/
that contains extra settings for AWX.This is very handy way if users'
exta_settings
is too big, but there is less information about this way. I think the page forexta_settings
should contain this alternative handy way.This PR changes:
*.py
files.web_extra_volume_mounts
in the example incustom-volume-and-volume-mount-options.md
to ensurecustom.py
is mounted on both task and web pods.custom-volume-and-volume-mount-options.md
.warning
block incustom-volume-and-volume-mount-options.md
.ISSUE TYPE
ADDITIONAL INFORMATION
The main setting file
/etc/tower/settings.py
is also mounted on the migration job pods and the metrics utility job pods, and currently there is no way to add custom volumes to migration job pod and metrics utility job pods.Mounting
custom.py
may cause inconsistencies between the setting files in the task/web pods and migration/metrics utility pods, but I do not expect thatcustom.py
will provide any settings that would affect migrations or metrics utilities. Please let me know if I am wrong (in which case I should rather remove thecustom.py
from this examples).