From 16a552a701bdd40fe8a2410cbe8d41672c8b38ce Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 28 Jun 2023 09:04:18 +0200 Subject: [PATCH] init.pp: Add missing datatypes --- REFERENCE.md | 58 +++++++++++++++++++++++------------------------ manifests/init.pp | 58 +++++++++++++++++++++++------------------------ 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index a9b38b42a..e93baeab2 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -629,7 +629,7 @@ Default value: `'on'` ##### `accept_mutex_delay` -Data type: `Any` +Data type: `String` @@ -637,7 +637,7 @@ Default value: `'500ms'` ##### `client_body_buffer_size` -Data type: `Any` +Data type: `String` @@ -653,7 +653,7 @@ Default value: `'10m'` ##### `client_body_timeout` -Data type: `Any` +Data type: `String` @@ -661,7 +661,7 @@ Default value: `'60s'` ##### `send_timeout` -Data type: `Any` +Data type: `String` @@ -669,7 +669,7 @@ Default value: `'60s'` ##### `lingering_timeout` -Data type: `Any` +Data type: `String` @@ -773,7 +773,7 @@ Default value: `'off'` ##### `gzip_buffers` -Data type: `Any` +Data type: `Optional[String]` @@ -781,7 +781,7 @@ Default value: `undef` ##### `gzip_comp_level` -Data type: `Any` +Data type: `Integer` @@ -789,7 +789,7 @@ Default value: `1` ##### `gzip_disable` -Data type: `Any` +Data type: `String` @@ -797,7 +797,7 @@ Default value: `'msie6'` ##### `gzip_min_length` -Data type: `Any` +Data type: `Integer` @@ -805,7 +805,7 @@ Default value: `20` ##### `gzip_http_version` -Data type: `Any` +Data type: `Float` @@ -821,7 +821,7 @@ Default value: `'off'` ##### `gzip_types` -Data type: `Any` +Data type: `Optional[Variant[String[1],Array[String[1]]]]` @@ -893,7 +893,7 @@ Default value: `'off'` ##### `keepalive_timeout` -Data type: `Any` +Data type: `String` @@ -901,7 +901,7 @@ Default value: `'65s'` ##### `keepalive_requests` -Data type: `Any` +Data type: `String` @@ -989,7 +989,7 @@ Default value: `512` ##### `nginx_cfg_prepend` -Data type: `Any` +Data type: `Boolean` @@ -1085,7 +1085,7 @@ Default value: `undef` ##### `proxy_connect_timeout` -Data type: `Any` +Data type: `String` @@ -1109,7 +1109,7 @@ Default value: `undef` ##### `proxy_read_timeout` -Data type: `Any` +Data type: `String` @@ -1117,7 +1117,7 @@ Default value: `'90s'` ##### `proxy_redirect` -Data type: `Any` +Data type: `Optional[String]` @@ -1125,7 +1125,7 @@ Default value: `undef` ##### `proxy_send_timeout` -Data type: `Any` +Data type: `String` @@ -1256,7 +1256,7 @@ Default value: `true` ##### `types_hash_bucket_size` -Data type: `Any` +Data type: `Variant[Integer,String]` @@ -1264,7 +1264,7 @@ Default value: `'512'` ##### `types_hash_max_size` -Data type: `Any` +Data type: `Variant[Integer,String]` @@ -1432,7 +1432,7 @@ Default value: `undef` ##### `package_ensure` -Data type: `Any` +Data type: `String` @@ -1440,7 +1440,7 @@ Default value: `installed` ##### `package_name` -Data type: `Any` +Data type: `String` @@ -1448,7 +1448,7 @@ Default value: `$nginx::params::package_name` ##### `package_source` -Data type: `Any` +Data type: `String` @@ -1456,7 +1456,7 @@ Default value: `'nginx'` ##### `package_flavor` -Data type: `Any` +Data type: `Optional[String]` @@ -1496,7 +1496,7 @@ Default value: `undef` ##### `passenger_package_ensure` -Data type: `Any` +Data type: `String` @@ -1528,7 +1528,7 @@ Default value: `true` ##### `service_flags` -Data type: `Any` +Data type: `Optional[String]` @@ -1536,7 +1536,7 @@ Default value: `undef` ##### `service_restart` -Data type: `Any` +Data type: `Optional[String]` @@ -1544,7 +1544,7 @@ Default value: `undef` ##### `service_name` -Data type: `Any` +Data type: `String` @@ -1552,7 +1552,7 @@ Default value: `'nginx'` ##### `service_manage` -Data type: `Any` +Data type: `Boolean` diff --git a/manifests/init.pp b/manifests/init.pp index b8e46dc4c..d871720e7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -88,12 +88,12 @@ ### START Nginx Configuration ### Optional[Enum['on', 'off']] $absolute_redirect = undef, Enum['on', 'off'] $accept_mutex = 'on', - $accept_mutex_delay = '500ms', - $client_body_buffer_size = '128k', + String $accept_mutex_delay = '500ms', + String $client_body_buffer_size = '128k', String $client_max_body_size = '10m', - $client_body_timeout = '60s', - $send_timeout = '60s', - $lingering_timeout = '5s', + String $client_body_timeout = '60s', + String $send_timeout = '60s', + String $lingering_timeout = '5s', Optional[Enum['on','off','always']] $lingering_close = undef, Optional[String[1]] $lingering_time = undef, Optional[Enum['on', 'off']] $etag = undef, @@ -107,13 +107,13 @@ Optional[String] $fastcgi_cache_path = undef, Optional[String] $fastcgi_cache_use_stale = undef, Enum['on', 'off'] $gzip = 'off', - $gzip_buffers = undef, - $gzip_comp_level = 1, - $gzip_disable = 'msie6', - $gzip_min_length = 20, - $gzip_http_version = 1.1, + Optional[String] $gzip_buffers = undef, + Integer $gzip_comp_level = 1, + String $gzip_disable = 'msie6', + Integer $gzip_min_length = 20, + Float $gzip_http_version = 1.1, Nginx::GzipProxied $gzip_proxied = 'off', - $gzip_types = undef, + Optional[Variant[String[1],Array[String[1]]]] $gzip_types = undef, Enum['on', 'off'] $gzip_vary = 'off', Optional[Enum['on', 'off', 'always']] $gzip_static = undef, Optional[Variant[Hash, Array]] $http_cfg_prepend = undef, @@ -122,8 +122,8 @@ Optional[Variant[Array[String], String]] $http_raw_append = undef, Enum['on', 'off'] $http_tcp_nodelay = 'on', Enum['on', 'off'] $http_tcp_nopush = 'off', - $keepalive_timeout = '65s', - $keepalive_requests = '100', + String $keepalive_timeout = '65s', + String $keepalive_requests = '100', Hash[String[1], Nginx::LogFormat] $log_format = {}, Hash[String[1], Nginx::LogFormat] $stream_log_format = {}, Boolean $mail = false, @@ -134,7 +134,7 @@ String $multi_accept = 'off', Integer $names_hash_bucket_size = 64, Integer $names_hash_max_size = 512, - $nginx_cfg_prepend = false, + Boolean $nginx_cfg_prepend = false, String $proxy_buffers = '32 4k', String $proxy_buffer_size = '8k', String $proxy_cache_inactive = '20m', @@ -146,12 +146,12 @@ Optional[String] $proxy_cache_loader_sleep = undef, Optional[String] $proxy_cache_loader_threshold = undef, Optional[Enum['on', 'off']] $proxy_use_temp_path = undef, - $proxy_connect_timeout = '90s', + String $proxy_connect_timeout = '90s', Integer $proxy_headers_hash_bucket_size = 64, Optional[String] $proxy_http_version = undef, - $proxy_read_timeout = '90s', - $proxy_redirect = undef, - $proxy_send_timeout = '90s', + String $proxy_read_timeout = '90s', + Optional[String] $proxy_redirect = undef, + String $proxy_send_timeout = '90s', Array $proxy_set_header = [ 'Host $host', 'X-Real-IP $remote_addr', @@ -173,8 +173,8 @@ Enum['on', 'off'] $ssl_stapling_verify = 'off', Stdlib::Absolutepath $snippets_dir = $nginx::params::snippets_dir, Boolean $manage_snippets_dir = true, - $types_hash_bucket_size = '512', - $types_hash_max_size = '1024', + Variant[Integer,String] $types_hash_bucket_size = '512', + Variant[Integer,String] $types_hash_max_size = '1024', Integer $worker_connections = 1024, Enum['on', 'off'] $ssl_prefer_server_ciphers = 'on', Variant[Integer, Enum['auto']] $worker_processes = 'auto', @@ -198,15 +198,15 @@ Optional[Enum['on', 'off']] $reset_timedout_connection = undef, ### START Package Configuration ### - $package_ensure = installed, - $package_name = $nginx::params::package_name, - $package_source = 'nginx', - $package_flavor = undef, + String $package_ensure = installed, + String $package_name = $nginx::params::package_name, + String $package_source = 'nginx', + Optional[String] $package_flavor = undef, Boolean $manage_repo = $nginx::params::manage_repo, Hash[String[1], String[1]] $mime_types = $nginx::params::mime_types, Boolean $mime_types_preserve_defaults = false, Optional[String] $repo_release = undef, - $passenger_package_ensure = installed, + String $passenger_package_ensure = installed, String[1] $passenger_package_name = $nginx::params::passenger_package_name, Optional[Stdlib::HTTPUrl] $repo_source = undef, ### END Package Configuration ### @@ -214,10 +214,10 @@ ### START Service Configuation ### Stdlib::Ensure::Service $service_ensure = 'running', Boolean $service_enable = true, - $service_flags = undef, - $service_restart = undef, - $service_name = 'nginx', - $service_manage = true, + Optional[String] $service_flags = undef, + Optional[String] $service_restart = undef, + String $service_name = 'nginx', + Boolean $service_manage = true, Boolean $service_config_check = false, String $service_config_check_command = 'nginx -t', ### END Service Configuration ###