Skip to content

Commit

Permalink
Make certs dir configurable
Browse files Browse the repository at this point in the history
closes #851
  • Loading branch information
fao89 committed Mar 8, 2022
1 parent e49d063 commit 0e78343
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/851.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Made certs dir configurable
2 changes: 1 addition & 1 deletion pulp_ansible/app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class AnsibleRepositorySerializer(RepositorySerializer):
help_text=_("Last synced metadata time."), allow_null=True, required=False
)
keyring = serializers.FilePathField(
path="/etc/pulp/certs/",
path=settings.ANSIBLE_CERTS_DIR,
help_text=_("Location of keyring used to verify signatures uploaded to this repository"),
allow_blank=True,
default="",
Expand Down
1 change: 1 addition & 0 deletions pulp_ansible/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
ANSIBLE_API_HOSTNAME = "https://" + socket.getfqdn()
ANSIBLE_CONTENT_HOSTNAME = settings.CONTENT_ORIGIN + "/pulp/content"
ANSIBLE_SIGNING_TASK_LIMITER = 10
ANSIBLE_CERTS_DIR = "/etc/pulp/certs/"

0 comments on commit 0e78343

Please sign in to comment.