File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9898 require => File [' /etc/rabbitmq' ],
9999 }
100100
101+ if $::osfamily == ' Debian' {
102+ file { '/etc/default/rabbitmq-server' :
103+ ensure => file ,
104+ content => template (' rabbitmq/default.erb' ),
105+ mode => ' 0644' ,
106+ owner => ' 0' ,
107+ group => ' 0' ,
108+ notify => Class[' rabbitmq::service' ],
109+ }
110+ }
111+
101112 if $config_cluster {
102113
103114 if $erlang_cookie == undef {
115126 }
116127 }
117128 }
118-
119-
120129}
121-
Original file line number Diff line number Diff line change 5858 $version = $rabbitmq::params::version,
5959 $wipe_db_on_cookie_change = $rabbitmq::params::wipe_db_on_cookie_change,
6060 $cluster_partition_handling = $rabbitmq::params::cluster_partition_handling,
61+ $file_limit = $rabbitmq::params::file_limit,
6162 $environment_variables = $rabbitmq::params::environment_variables,
6263 $config_variables = $rabbitmq::params::config_variables,
6364 $config_kernel_variables = $rabbitmq::params::config_kernel_variables,
9394 validate_re($stomp_port , ' \d +' )
9495 validate_bool($wipe_db_on_cookie_change )
9596 validate_bool($tcp_keepalive )
97+ validate_re($file_limit , ' \d +' )
9698 # Validate service parameters.
9799 validate_re($service_ensure , ' ^(running|stopped)$' )
98100 validate_bool($service_manage )
Original file line number Diff line number Diff line change 116116 $environment_variables = {}
117117 $config_variables = {}
118118 $config_kernel_variables = {}
119+ $file_limit = 16384
119120}
Original file line number Diff line number Diff line change 1+ # File managed by Puppet.
2+
3+ # This file is sourced by /etc/init.d/rabbitmq-server. Its primary
4+ # reason for existing is to allow adjustment of system limits for the
5+ # rabbitmq-server process.
6+ #
7+ # Maximum number of open file handles. This will need to be increased
8+ # to handle many simultaneous connections. Refer to the system
9+ # documentation for ulimit (in man bash) for more information.
10+ ulimit -n <%= @file_limit %>
You can’t perform that action at this time.
0 commit comments