Skip to content

Instantly share code, notes, and snippets.

@jtopper
Created May 16, 2012 17:12
Show Gist options
  • Save jtopper/2712295 to your computer and use it in GitHub Desktop.
Save jtopper/2712295 to your computer and use it in GitHub Desktop.
Should this be legal?
define sf_apache::firewall_allow::service ( $source ) {
firewall { "080 ${title}":
require => Class["sf_apache::config"],
proto => 'tcp',
dport => $sf_apache::config::httpd_config['Port'],
source => $source
}
}
class sf_apache::config ( $httpd_config ) {
# ...
}
class { sf_apache:
httpd_config => {
'MPM' => 'prefork',
'StartServers' => '10',
'MinSpareServers' => '10',
'MaxSpareServers' => '10',
'ServerLimit' => '256',
'MaxClients' => '256',
'MaxRequestsPerChild' => '4000',
'Port' => ['80', '8080']
}
}
sf_apache::firewall_allow::service { 'allow from localhost':
source => '127.0.0.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment