Skip to content

Commit be31373

Browse files
committed
2 parents 3b9b17f + e89a998 commit be31373

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</projects>
77
<buildSpec>
88
<buildCommand>
9-
<name>org.cloudsmith.geppetto.pp.dsl.ui.modulefileBuilder</name>
9+
<name>com.puppetlabs.geppetto.pp.dsl.ui.modulefileBuilder</name>
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
@@ -17,7 +17,7 @@
1717
</buildCommand>
1818
</buildSpec>
1919
<natures>
20-
<nature>org.cloudsmith.geppetto.pp.dsl.ui.puppetNature</nature>
20+
<nature>com.puppetlabs.geppetto.pp.dsl.ui.puppetNature</nature>
2121
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
2222
</natures>
2323
</projectDescription>

Modulefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name 'example42-nginx'
2-
version '2.0.11'
2+
version '2.0.13'
33

44
author 'Alessandro Franceschi'
55
license 'Apache2'

manifests/init.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
# Specified the max body size of client. Default is 10mb.
154154
# Increase this param if your nginx is an upload server.
155155
#
156+
# [*sendfile*]
157+
# Activate or deactivate the usage of sendfile. Default is on.
158+
#
156159
# [*service_status*]
157160
# If the nginx service init script supports status argument
158161
#
@@ -229,6 +232,7 @@
229232
$keepalive_timeout = params_lookup( 'keepalive_timeout' ),
230233
$client_max_body_size = params_lookup( 'client_max_body_size' ),
231234
$types_hash_max_size = params_lookup( 'types_hash_max_size' ),
235+
$sendfile = params_lookup( 'sendfile' ),
232236
$my_class = params_lookup( 'my_class' ),
233237
$source = params_lookup( 'source' ),
234238
$source_dir = params_lookup( 'source_dir' ),

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
$keepalive_timeout = 65
2020
$client_max_body_size = '10m'
2121
$types_hash_max_size = 1024
22+
$sendfile = 'on'
2223

2324
### Application related parameters
2425

templates/conf.d/nginx.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ http {
1717

1818
access_log <%= scope.lookupvar('nginx::log_dir')%>/access.log;
1919

20-
sendfile on;
20+
sendfile <%= scope.lookupvar('nginx::sendfile')%>;
2121
#tcp_nopush on;
2222
tcp_nodelay on;
2323
client_max_body_size <%= scope.lookupvar('nginx::client_max_body_size')%>;

0 commit comments

Comments
 (0)