-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Duplicate HTTP Port Declarations For Different Bind IPs Produces SELinux Duplicate Resource Declaration Error #120
Comments
Looking at the code, one possible solution is to add an selinux parameter to http_port & https_port that can be set to true or false. (Default true) That would allow the choice to set the SELinux context for a port declaration. You could then choose not to have it set up at all or set it up for only one instance of a particular port but not the additional instances thus avoiding the duplicate declaration. |
This may be a case for |
Since duplication was possible, the selinux::port is now a "ensure_resource". This fixes issue voxpupuli#120
When declaring serveral http_ports with different IP's, but the same portnumber a resource conflict would arise on the selinux-part. Changed the selinux::port to an "ensure_resource", hence fixing issue voxpupuli#120.
When declaring serveral http_ports with different IP's, but the same portnumber a resource conflict would arise on the selinux-part. Changed the selinux::port to an "ensure_resource", hence fixing issue voxpupuli#120.
When declaring serveral http_ports with different IP's, but the same portnumber a resource conflict would arise on the selinux-part. Changed the selinux::port to an "ensure_resource", hence fixing issue voxpupuli#120.
When declaring serveral http_ports with different IP's, but the same portnumber a resource conflict would arise on the selinux-part. Changed the selinux::port to an "ensure_resource", hence fixing issue voxpupuli#120.
When declaring serveral http_ports with different IP's, but the same portnumber a resource conflict would arise on the selinux-part. Changed the selinux::port to an "ensure_resource", hence fixing issue voxpupuli#120.
When declaring serveral http_ports with different IP's, but the same portnumber a resource conflict would arise on the selinux-part. Changed the selinux::port to an "ensure_resource", hence fixing issue voxpupuli#120.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
The module is now able to handle multiple server declarations for the same port on different IPs.
This was solved in #152 |
Affected Module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
We have a use case of hosting about a dozen different proxy servers with one squid instance. Each server is bound to a different IP with different certs but the same port number. A Selinux::Port resource is declared for every http_port instance. If you have the same port number bound to different ips, this produces a duplicate resource declaration error and a failure to compile.
What behavior did you expect instead
The squid module should be able to handle multiple server declarations for the same port on different IPs.
The text was updated successfully, but these errors were encountered: