This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify use of
pulp_content_bind
and pulp_api_binD
In its current state, the installer relies on `pulp_content_bind` and `pulp_api_bind` for the following roles: `pulp` and `pulp_content`. Yet, for `pulp_webserver` it relies on a new set of parameters for the exact same purposes (note: those parameters are only used in this role); namely: `pulp_content_host`, `pulp_content_port`, `pulp_api_host` and `pulp_api_port` While it would be less error prone to follow the 'define it once use it everywhere pattern', the following PR also allows has the benefit of: * Enabling the use of Unix Domain Socket (UDS) to improve scale (ie. `/var/run/pulpcore-api/pulpcore-api.sock`) and apply best practice (if you only deal with localhost you don't need to get the network stack involved) * Pave the way for a better IPv6 integration. 127.0.0.1 doesn't exist in IPv6 only servers. By using UDS as previously mentionned this limitation becomes void for those two (api and content) components fixes #6921
- Loading branch information
Showing
6 changed files
with
16 additions
and
16 deletions.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Unify the use of `pulp_content_bind` and `pulp_api_bind` across all network facing role. this | ||
inherently allow one to rely on Unix Domain Socket (UDS) if wanted based on the deployment | ||
scenario. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The `pulp_api_host` (127.0.0.1) and `pulp_api_port` (24817) have been removed and replaced by | ||
`pulp_api_bind` (127.0.0.1:24817). Same happened for `pulp_content_host` and `pulp_content_port` | ||
in favor of `pulp_content_bind`. |
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
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,8 +1,6 @@ | ||
--- | ||
pulp_webserver_server: nginx | ||
pulp_content_host: 127.0.0.1 | ||
pulp_content_port: 24816 | ||
pulp_api_host: 127.0.0.1 | ||
pulp_api_port: 24817 | ||
pulp_content_bind: '127.0.0.1:24816' | ||
pulp_api_bind: '127.0.0.1:24817' | ||
pulp_configure_firewall: auto | ||
pulp_user_home: '/var/lib/pulp' |
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
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