Skip to content

Commit e85203e

Browse files
authored
Merge pull request #1487 from aba-rechsteiner/master
Add create_resources for nginx_snippets
2 parents a4aedf6 + c776a2f commit e85203e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

manifests/init.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
# Enables or disables resetting timed out connections and connections closed
3939
# with the non-standard code 444.
4040
#
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+
#
4147
class nginx (
4248
### START Nginx Configuration ###
4349
Variant[Stdlib::Absolutepath, Boolean] $client_body_temp_path = $nginx::params::client_body_temp_path,
@@ -216,6 +222,8 @@
216222
Hash $geo_mappings_defaults = {},
217223
Hash $string_mappings = {},
218224
Hash $string_mappings_defaults = {},
225+
Hash $nginx_snippets = {},
226+
Hash $nginx_snippets_defaults = {},
219227
Hash $nginx_locations = {},
220228
Hash $nginx_locations_defaults = {},
221229
Hash $nginx_mailhosts = {},
@@ -236,6 +244,7 @@
236244
contain 'nginx::service'
237245

238246
create_resources( 'nginx::resource::geo', $geo_mappings, $geo_mappings_defaults )
247+
create_resources( 'nginx::resource::snippet', $nginx_snippets, $nginx_snippets_defaults )
239248
create_resources( 'nginx::resource::location', $nginx_locations, $nginx_locations_defaults )
240249
create_resources( 'nginx::resource::mailhost', $nginx_mailhosts, $nginx_mailhosts_defaults )
241250
create_resources( 'nginx::resource::map', $string_mappings, $string_mappings_defaults )

0 commit comments

Comments
 (0)