Skip to content

Commit e718fe8

Browse files
arjenzjst-cyr
authored andcommitted
Update wsgi examples and documentation
Update example to avoid hitting `Error while evaluating a Function Call, deprecation. apache::vhost::wsgi_daemon_process_options. This parameter is deprecated. Please add values inside Hash wsgi_daemon_process`
1 parent e4fe8c7 commit e718fe8

3 files changed

Lines changed: 39 additions & 45 deletions

File tree

‎REFERENCE.md‎

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10131,20 +10131,20 @@ Default value: `false`
1013110131
Data type: `Optional[Variant[String, Hash]]`
1013210132

1013310133
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10134-
wsgi_daemon_process_options, wsgi_process_group,
10135-
wsgi_script_aliases and wsgi_pass_authorization.<br />
10134+
wsgi_process_group, wsgi_script_aliases and wsgi_pass_authorization.<br />
1013610135
A hash that sets the name of the WSGI daemon, accepting
1013710136
[certain keys](http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIDaemonProcess.html).<br />
1013810137
An example virtual host configuration with WSGI:
1013910138
``` puppet
1014010139
apache::vhost { 'wsgi.example.com':
1014110140
port => 80,
1014210141
docroot => '/var/www/pythonapp',
10143-
wsgi_daemon_process => 'wsgi',
10144-
wsgi_daemon_process_options =>
10145-
{ processes => 2,
10146-
threads => 15,
10147-
display-name => '%{GROUP}',
10142+
wsgi_daemon_process =>
10143+
{ 'wsgi' =>
10144+
{ processes => 2,
10145+
threads => 15,
10146+
display-name => '%{GROUP}'
10147+
}
1014810148
},
1014910149
wsgi_process_group => 'wsgi',
1015010150
wsgi_script_aliases => { '/' => '/var/www/demo.wsgi' },
@@ -10158,10 +10158,7 @@ Default value: `undef`
1015810158

1015910159
Data type: `Optional[Hash]`
1016010160

10161-
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10162-
wsgi_daemon_process, wsgi_process_group,
10163-
wsgi_script_aliases and wsgi_pass_authorization.<br />
10164-
Sets the group ID that the virtual host runs under.
10161+
DEPRECATED: Please add values inside Hash `wsgi_daemon_process`.
1016510162

1016610163
Default value: `undef`
1016710164

@@ -10170,7 +10167,7 @@ Default value: `undef`
1017010167
Data type: `Optional[String]`
1017110168

1017210169
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10173-
wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
10170+
wsgi_daemon_process, wsgi_process_group,
1017410171
and wsgi_pass_authorization.<br />
1017510172
This parameter defines the [`WSGIApplicationGroup directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIApplicationGroup.html),
1017610173
thus allowing you to specify which application group the WSGI application belongs to,
@@ -10184,7 +10181,7 @@ Default value: `undef`
1018410181
Data type: `Optional[String]`
1018510182

1018610183
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10187-
wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
10184+
wsgi_daemon_process, wsgi_process_group,
1018810185
and wsgi_pass_authorization.<br />
1018910186
This parameter defines the [`WSGIImportScript directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIImportScript.html),
1019010187
which can be used in order to specify a script file to be loaded upon a process starting.
@@ -10196,7 +10193,7 @@ Default value: `undef`
1019610193
Data type: `Optional[Hash]`
1019710194

1019810195
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10199-
wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
10196+
wsgi_daemon_process, wsgi_process_group,
1020010197
and wsgi_pass_authorization.<br />
1020110198
This parameter defines the [`WSGIImportScript directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIImportScript.html),
1020210199
which can be used in order to specify a script file to be loaded upon a process starting.<br />
@@ -10209,7 +10206,7 @@ Default value: `undef`
1020910206
Data type: `Optional[Apache::OnOff]`
1021010207

1021110208
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10212-
wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
10209+
wsgi_daemon_process, wsgi_process_group,
1021310210
and wsgi_pass_authorization.<br />
1021410211
This parameter defines the [`WSGIChunkedRequest directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIChunkedRequest.html),
1021510212
allowing you to enable support for chunked request content.<br />
@@ -10223,7 +10220,7 @@ Default value: `undef`
1022310220
Data type: `Optional[String]`
1022410221

1022510222
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10226-
wsgi_daemon_process, wsgi_daemon_process_options,
10223+
wsgi_daemon_process,
1022710224
wsgi_script_aliases and wsgi_pass_authorization.<br />
1022810225
Requires a hash of web paths to filesystem `.wsgi paths/`.
1022910226

@@ -10234,7 +10231,7 @@ Default value: `undef`
1023410231
Data type: `Optional[Hash]`
1023510232

1023610233
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10237-
wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
10234+
wsgi_daemon_process, wsgi_process_group,
1023810235
and wsgi_pass_authorization.<br />
1023910236
Uses the WSGI application to handle authorization instead of Apache when set to `On`.<br />
1024010237
For more information, see mod_wsgi's [WSGIPassAuthorization documentation](https://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIPassAuthorization.html).
@@ -10246,7 +10243,7 @@ Default value: `undef`
1024610243
Data type: `Optional[Hash]`
1024710244

1024810245
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10249-
wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
10246+
wsgi_daemon_process, wsgi_process_group,
1025010247
and wsgi_pass_authorization.<br />
1025110248
Uses the WSGI application to handle authorization instead of Apache when set to `On`.<br />
1025210249
This directive is similar to `wsgi_script_aliases`, but makes use of regular expressions
@@ -10260,7 +10257,7 @@ Default value: `undef`
1026010257
Data type: `Optional[Apache::OnOff]`
1026110258

1026210259
Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
10263-
wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group and
10260+
wsgi_daemon_process, wsgi_process_group and
1026410261
wsgi_script_aliases.<br />
1026510262
Enables support for chunked requests.
1026610263

‎manifests/vhost.pp‎

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,36 +1180,32 @@
11801180
#
11811181
# @param wsgi_daemon_process
11821182
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1183-
# wsgi_daemon_process_options, wsgi_process_group,
1184-
# wsgi_script_aliases and wsgi_pass_authorization.<br />
1183+
# wsgi_process_group, wsgi_script_aliases and wsgi_pass_authorization.<br />
11851184
# A hash that sets the name of the WSGI daemon, accepting
11861185
# [certain keys](http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIDaemonProcess.html).<br />
11871186
# An example virtual host configuration with WSGI:
11881187
# ``` puppet
11891188
# apache::vhost { 'wsgi.example.com':
11901189
# port => 80,
11911190
# docroot => '/var/www/pythonapp',
1192-
# wsgi_daemon_process => 'wsgi',
1193-
# wsgi_daemon_process_options =>
1194-
# { processes => 2,
1195-
# threads => 15,
1196-
# display-name => '%{GROUP}',
1191+
# wsgi_daemon_process =>
1192+
# { 'wsgi' =>
1193+
# { processes => 2,
1194+
# threads => 15,
1195+
# display-name => '%{GROUP}'
1196+
# }
11971197
# },
11981198
# wsgi_process_group => 'wsgi',
11991199
# wsgi_script_aliases => { '/' => '/var/www/demo.wsgi' },
12001200
# wsgi_chunked_request => 'On',
1201-
# }
12021201
# ```
12031202
#
12041203
# @param wsgi_daemon_process_options
1205-
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1206-
# wsgi_daemon_process, wsgi_process_group,
1207-
# wsgi_script_aliases and wsgi_pass_authorization.<br />
1208-
# Sets the group ID that the virtual host runs under.
1204+
# DEPRECATED: Please add values inside Hash `wsgi_daemon_process`.
12091205
#
12101206
# @param wsgi_application_group
12111207
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1212-
# wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
1208+
# wsgi_daemon_process, wsgi_process_group,
12131209
# and wsgi_pass_authorization.<br />
12141210
# This parameter defines the [`WSGIApplicationGroup directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIApplicationGroup.html),
12151211
# thus allowing you to specify which application group the WSGI application belongs to,
@@ -1218,22 +1214,22 @@
12181214
#
12191215
# @param wsgi_import_script
12201216
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1221-
# wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
1217+
# wsgi_daemon_process, wsgi_process_group,
12221218
# and wsgi_pass_authorization.<br />
12231219
# This parameter defines the [`WSGIImportScript directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIImportScript.html),
12241220
# which can be used in order to specify a script file to be loaded upon a process starting.
12251221
#
12261222
# @param wsgi_import_script_options
12271223
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1228-
# wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
1224+
# wsgi_daemon_process, wsgi_process_group,
12291225
# and wsgi_pass_authorization.<br />
12301226
# This parameter defines the [`WSGIImportScript directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIImportScript.html),
12311227
# which can be used in order to specify a script file to be loaded upon a process starting.<br />
12321228
# Specifies the process and aplication groups of the script.
12331229
#
12341230
# @param wsgi_chunked_request
12351231
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1236-
# wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
1232+
# wsgi_daemon_process, wsgi_process_group,
12371233
# and wsgi_pass_authorization.<br />
12381234
# This parameter defines the [`WSGIChunkedRequest directive`](https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIChunkedRequest.html),
12391235
# allowing you to enable support for chunked request content.<br />
@@ -1242,20 +1238,20 @@
12421238
#
12431239
# @param wsgi_process_group
12441240
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1245-
# wsgi_daemon_process, wsgi_daemon_process_options,
1241+
# wsgi_daemon_process,
12461242
# wsgi_script_aliases and wsgi_pass_authorization.<br />
12471243
# Requires a hash of web paths to filesystem `.wsgi paths/`.
12481244
#
12491245
# @param wsgi_script_aliases
12501246
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1251-
# wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
1247+
# wsgi_daemon_process, wsgi_process_group,
12521248
# and wsgi_pass_authorization.<br />
12531249
# Uses the WSGI application to handle authorization instead of Apache when set to `On`.<br />
12541250
# For more information, see mod_wsgi's [WSGIPassAuthorization documentation](https://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIPassAuthorization.html).
12551251
#
12561252
# @param wsgi_script_aliases_match
12571253
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1258-
# wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group,
1254+
# wsgi_daemon_process, wsgi_process_group,
12591255
# and wsgi_pass_authorization.<br />
12601256
# Uses the WSGI application to handle authorization instead of Apache when set to `On`.<br />
12611257
# This directive is similar to `wsgi_script_aliases`, but makes use of regular expressions
@@ -1264,7 +1260,7 @@
12641260
#
12651261
# @param wsgi_pass_authorization
12661262
# Sets up a virtual host with [WSGI](https://github.com/GrahamDumpleton/mod_wsgi) alongside
1267-
# wsgi_daemon_process, wsgi_daemon_process_options, wsgi_process_group and
1263+
# wsgi_daemon_process, wsgi_process_group and
12681264
# wsgi_script_aliases.<br />
12691265
# Enables support for chunked requests.
12701266
#

‎readmes/README_ja_JP.md‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,13 @@ apache::vhost { 'wsgi.example.com':
554554
port => '80',
555555
docroot => '/var/www/pythonapp',
556556
wsgi_application_group => '%{GLOBAL}',
557-
wsgi_daemon_process => 'wsgi',
558-
wsgi_daemon_process_options => {
559-
processes => '2',
560-
threads => '15',
561-
display-name => '%{GROUP}',
562-
},
557+
wsgi_daemon_process =>
558+
{ 'wsgi' =>
559+
{ processes => 2,
560+
threads => 15,
561+
display-name => '%{GROUP}'
562+
}
563+
},
563564
wsgi_import_script => '/var/www/demo.wsgi',
564565
wsgi_import_script_options => {
565566
process-group => 'wsgi',

0 commit comments

Comments
 (0)