Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7766

puppetlabs/haproxy: exported resources needs additional option field

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: haproxy
    • Labels:
    • Environment:

      AWS,

       

          HAProxy 

               |

      __________

         |            |

      Tomcat  Tomcat 

      Description

      AWS,

       

          HAProxy 

               |

      __________

         |            |

      Tomcat  Tomcat 

       

      Hi,

      We have an AWS environment with autoscaling and autodeployment to tomcat.  Because of this we are using exported resources.

      However, I'd like to add some options to the backend for a http check.  If I add the values:

      option httpchk GET /applicationroot HTTP/1.1\r\nHost:\ randomeawsname1
      option httpchk GET /applicationroot HTTP/1.1\r\nHost:\ randomeawsname2

       to the haproxy.cfg it works as expected.

      Given we don't know the name of tomcat1 & 2 I can't add the option using the backend.pp class, where I can see option => tcplog is already specified.  I could potentially look them up in the puppet database but I'd have to hack to module and create a loop for this.

      For these reasons I believe the export resources class needs a new field to allow for this behavior. 

       

      Desired behavior is:

       backend BE-my-service
        balance roundrobin
        option tcplog
        option httpchk GET /applicationroot HTTP/1.1\r\nHost:\ randomeawsname1
        option httpchk GET /applicationroot HTTP/1.1\r\nHost:\ randomeawsname1
        server randomeawsname1 192.168.1.100:8443 maxconn 8192 check fastinter 250ms ssl ciphers HIGH no-sslv3 ca-file /mycerts/ca/ca.pem
        server randomeawsname1 192.168.1.101:8443 maxconn 8192 check fastinter 250ms ssl ciphers HIGH no-sslv3 ca-file /mycerts/ca/ca.pem
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ds2000 David Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support