Created
December 17, 2014 17:11
-
-
Save hunner/74d0e479ffcb7ad0d342 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_1::Nested_2::Nested_2>)> cd subject | |
[2] pry(#<Puppet::Resource::Catalog>):1> puts resource("File[/dne/_etc_haproxy_haproxy.cfg/fragments/10_haproxy-base]")[:content] | |
global | |
chroot /var/lib/haproxy | |
daemon | |
group haproxy | |
log 10.10.10.10 local0 | |
maxconn 4000 | |
pidfile /var/run/haproxy.pid | |
stats socket /var/lib/haproxy/stats | |
user haproxy | |
defaults | |
maxconn 8000 | |
option redispatch | |
retries 3 | |
stats enable | |
timeout http-request 10s | |
timeout queue 1m | |
timeout connect 10s | |
timeout client 1m | |
timeout server 1m | |
timeout check 10s | |
=> nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let(:params) do { | |
'defaults_options' => { | |
'stats' => 'enable', | |
'option' => 'redispatch', | |
'retries' => '3', | |
'timeout' => [ | |
'http-request 10s', | |
'queue 1m', | |
'connect 10s', | |
'client 1m', | |
'server 1m', | |
'check 10s', | |
], | |
'maxconn' => '8000' | |
} } | |
end | |
it 'test' do | |
require'pry';binding.pry | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment