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_redis: Allow to configure Unix Domain Socket #324
Conversation
|
Attached issue: https://pulp.plan.io/issues/6931 |
|
This tested has been tested with the following two scenarios: Scenario 1: Using Unix Domain SocketScenario 2: Using the defaults value for pulp_redis_bind 127.0.0.1:6379Both have deployed successfully, and the following can be observed in |
| - name: Ensure Redis will listen on the specified TCP socket | ||
| lineinfile: | ||
| path: '{{ pulp_redis_conf_file }}' | ||
| regexp: '{{ item.regexp }}' | ||
| line: '{{ item.line }}' | ||
| loop: | ||
| - regexp: '^port ' | ||
| line: 'port {{ pulp_redis_port }}' | ||
| - regexp: '^bind ' | ||
| line: 'bind {{ pulp_redis_host }}' | ||
| notify: restart redis |
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!
| - name: Ensure pulp is part of group redis | ||
| user: | ||
| name: '{{ pulp_user }}' | ||
| groups: redis | ||
| append: true | ||
|
|
||
| - name: Ensure Redis will not listen on a TCP socket |
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 liked these ensure tasks
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.
Awesome! See 1 suggestion.
This commit ensures one can configure redis so it listens to unix domain socket (if wanted) rather than forcing it to listen on TCP socket. Benefits of this commit has been higlighted in previous PR[1]. Also, this commit introduces `pulp_redis_bind` to offer an expected experience for people using `pulp/pulp_installer` when it comes to configure network services (ie. `pulp_api_bind`, `pulp_content_bind`). fixes #6931 [1] pulp#322
This commit ensures one can configure redis so it listens to unix domain
socket (if wanted) rather than forcing it to listen on TCP socket.
Benefits of this commit has been higlighted in previous PR[1].
Also, this commit introduces
pulp_redis_bindto offer an expectedexperience for people using
pulp/pulp_installerwhen it comes toconfigure network services (ie.
pulp_api_bind,pulp_content_bind).fixes #6931
[1] #322