-
Notifications
You must be signed in to change notification settings - Fork 43
Use a unix socket between httpd and Foreman's Puma #593
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [Unit] | ||
| Description=Foreman socket | ||
|
|
||
| [Socket] | ||
| ListenStream={{ foreman_listen_stream }} | ||
| SocketUser=apache | ||
| SocketMode=0600 | ||
|
|
||
| NoDelay=false | ||
| ReusePort=true | ||
| Backlog=1024 | ||
|
|
||
| [Install] | ||
| WantedBy=sockets.target |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,13 @@ | |||||||||||||||||||||||||
| persistent: true | ||||||||||||||||||||||||||
| when: ansible_facts['selinux']['status'] == "enabled" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| # TODO: probably not the right boolean | ||||||||||||||||||||||||||
| - name: Set daemons_enable_cluster_mode so Apache can connect to unix sockets | ||||||||||||||||||||||||||
| ansible.posix.seboolean: | ||||||||||||||||||||||||||
| name: daemons_enable_cluster_mode | ||||||||||||||||||||||||||
| state: true | ||||||||||||||||||||||||||
| persistent: true | ||||||||||||||||||||||||||
|
Comment on lines
+16
to
+21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would make sense to run this only when SELinux is enabled?
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this really is the correct boolean so IMHO the TODO still stands. |
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| - name: Disable welcome page | ||||||||||||||||||||||||||
| ansible.builtin.file: | ||||||||||||||||||||||||||
| path: /etc/httpd/conf.d/welcome.conf | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
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.
Should we keep this consistent with PROD deployment?
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.
The design here is that the role defaults remain standalone while a level higher they're connected to Apache.