|
| 1 | +# define: nginx::resource::location |
| 2 | +# |
| 3 | +# This definition creates a new location entry within a virtual host |
| 4 | +# |
| 5 | +# Parameters: |
| 6 | +# [*ensure*] - Enables or disables the specified location (present|absent) |
| 7 | +# [*listen_ip*] - Default IP Address for NGINX to listen with this vHost on. Defaults to all interfaces (*) |
| 8 | +# [*listen_port*] - Default IP Port for NGINX to listen with this vHost on. Defaults to TCP 80 |
| 9 | +# [*ipv6_enable*] - BOOL value to enable/disable IPv6 support (false|true). Module will check to see if IPv6 |
| 10 | +# support exists on your system before enabling. |
| 11 | +# [*ipv6_listen_ip*] - Default IPv6 Address for NGINX to listen with this vHost on. Defaults to all interfaces (::) |
| 12 | +# [*ipv6_listen_port*] - Default IPv6 Port for NGINX to listen with this vHost on. Defaults to TCP 80 |
| 13 | +# [*index_files*] - Default index files for NGINX to read when traversing a directory |
| 14 | +# [*proxy*] - Proxy server(s) for a location to connect to. Accepts a single value, can be used in conjunction |
| 15 | +# with nginx::resource::upstream |
| 16 | +# [*ssl*] - Indicates whether to setup SSL bindings for this location. |
| 17 | +# [*ssl_cert*] - Pre-generated SSL Certificate file to reference for SSL Support. This is not generated by this module. |
| 18 | +# [*ssl_key*] - Pre-generated SSL Key file to reference for SSL Support. This is not generated by this module. |
| 19 | +# [*www_root*] - Specifies the location on disk for files to be read from. Cannot be set in conjunction with $proxy |
| 20 | +# |
| 21 | +# Actions: |
| 22 | +# |
| 23 | +# Requires: |
| 24 | +# |
| 25 | +# Sample Usage: |
| 26 | +# nginx::resource::vhost { 'test2.local': |
| 27 | +# ensure => present, |
| 28 | +# www_root => '/var/www/nginx-default', |
| 29 | +# ssl => 'true', |
| 30 | +# ssl_cert => '/tmp/server.crt', |
| 31 | +# ssl_key => '/tmp/server.pem', |
| 32 | +# } |
1 | 33 | define nginx::resource::vhost(
|
2 | 34 | $ensure = 'enable',
|
3 | 35 | $listen_ip = '*',
|
|
0 commit comments