Skip to content
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

Add haproxy::listen bind_options parameter for setting arbitrary 'bind' options #82

Merged
merged 3 commits into from
May 19, 2014
Merged

Conversation

misterdorm
Copy link

No description provided.

@misterdorm
Copy link
Author

Travis CI build failed under Ruby 1.8.7 on this:

/home/travis/.rvm/gems/ree-1.8.7-2012.02/gems/json-1.8.1/lib/json/ext/parser.so: [BUG] Segmentation fault

Is this actually a problem with the patch? Not sure how to go about fixing that.

@@ -14,7 +14,7 @@
it { should contain_concat__fragment('croy_listen_block').with(
'order' => '20-croy-00',
'target' => '/etc/haproxy/haproxy.cfg',
'content' => "\nlisten croy\n bind 1.1.1.1:18140\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
'content' => "\nlisten croy\n bind 1.1.1.1:18140 \n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the space after the bind argument?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the way the haproxy_listen_block.erb template is coded (see below.) There's always a space after the ip:port, even if there are no bind options specified.

hunner added a commit that referenced this pull request May 19, 2014
Add haproxy::listen bind_options parameter for setting arbitrary 'bind' options
@hunner hunner merged commit b35edfa into puppetlabs:master May 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants