Skip to content

Instantly share code, notes, and snippets.

@standaloneSA
Created June 29, 2016 16:23
Show Gist options
  • Save standaloneSA/bfbec22ece2d9fd1746e2858ba1ba3d0 to your computer and use it in GitHub Desktop.
Save standaloneSA/bfbec22ece2d9fd1746e2858ba1ba3d0 to your computer and use it in GitHub Desktop.
haproxy::frontend { 'myhost':
collect_exported => false,
mode => 'http',
bind => { "${::ipaddress_eth1}:443" => [ 'ssl', 'crt', '/etc/haproxy/certs/ssl.pem' ] },
options => { 'default_backend' => 'myhost'},
}
@WhatsARanjit
Copy link

stuff:
  myhost:
    collect_exported: false
    mode: 'http'
    bind:
      "%{::ipaddress_eth1}:443":
        - 'ssl'
        - 'crt'
        - '/etc/haproxy/certs/ssl.pem'
    options:
      default_backend: 'myhost'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment