|
38 | 38 | # Enables or disables resetting timed out connections and connections closed
|
39 | 39 | # with the non-standard code 444.
|
40 | 40 | #
|
| 41 | +# @param nginx_snippets |
| 42 | +# Specifies a hash from which to generate `nginx::resource::snippet` resources. |
| 43 | +# |
| 44 | +# @param nginx_snippets_defaults |
| 45 | +# Can be used to define default values for the parameter `nginx_snippets`. |
| 46 | +# |
41 | 47 | class nginx (
|
42 | 48 | ### START Nginx Configuration ###
|
43 | 49 | Variant[Stdlib::Absolutepath, Boolean] $client_body_temp_path = $nginx::params::client_body_temp_path,
|
|
216 | 222 | Hash $geo_mappings_defaults = {},
|
217 | 223 | Hash $string_mappings = {},
|
218 | 224 | Hash $string_mappings_defaults = {},
|
| 225 | + Hash $nginx_snippets = {}, |
| 226 | + Hash $nginx_snippets_defaults = {}, |
219 | 227 | Hash $nginx_locations = {},
|
220 | 228 | Hash $nginx_locations_defaults = {},
|
221 | 229 | Hash $nginx_mailhosts = {},
|
|
236 | 244 | contain 'nginx::service'
|
237 | 245 |
|
238 | 246 | create_resources( 'nginx::resource::geo', $geo_mappings, $geo_mappings_defaults )
|
| 247 | + create_resources( 'nginx::resource::snippet', $nginx_snippets, $nginx_snippets_defaults ) |
239 | 248 | create_resources( 'nginx::resource::location', $nginx_locations, $nginx_locations_defaults )
|
240 | 249 | create_resources( 'nginx::resource::mailhost', $nginx_mailhosts, $nginx_mailhosts_defaults )
|
241 | 250 | create_resources( 'nginx::resource::map', $string_mappings, $string_mappings_defaults )
|
|
0 commit comments