Skip to content

Instantly share code, notes, and snippets.

@hunner
Created December 17, 2014 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunner/74d0e479ffcb7ad0d342 to your computer and use it in GitHub Desktop.
Save hunner/74d0e479ffcb7ad0d342 to your computer and use it in GitHub Desktop.
[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
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