Puppet Class: storm::webdav

Inherits:
storm::webdav::params
Defined in:
manifests/webdav.pp

Summary

StoRM WebDAV puppet module

Overview

Examples:

Basic usage


class { 'storm::webdav':
  storage_areas => [
    {
      name                       => 'test.vo',
      root_path                  => '/storage/test.vo',
      access_points              => ['/test.vo'],
      vos                        => ['test.vo', 'test.vo.2'],
    },
    {
      name                       => 'test.vo.2',
      root_path                  => '/storage/test.vo.2',
      access_points              => ['/test.vo.2'],
      vos                        => ['test.vo.2'],
      authenticated_read_enabled => true,
      anonymous_read_enabled     => true,
      vo_map_enabled             => false,
    },
  ],
  manage_application_file => true,
  oauth_issuers => [
    {
      name   => 'indigo-dc',
      issuer => 'https://iam-test.indigo-datacloud.eu/',
    },
  ],
  hostnames => ['webdav.example.org', 'storm-webdav.example.org'],
}

class { 'storm::webdav':
  manage_application_file => true,
  application_file        => '/root/storm/webdav/application.yml',
  storage_areas_directory => '/root/storm/webdav/sa.d',
  hostnames               => ['storm-webdav.example.org'],
}

Parameters:

  • manage_application_file (Boolean) (defaults to: $storm::webdav::params::manage_application_file)

    Set to True if you want to manage application.yml configuration. Default: false (application.yml file configuration is ignored).

  • application_file (String) (defaults to: $storm::webdav::params::application_file)

    If defined, the application.yml file is copied from this path and oauth_issuers is ignored. Ignored if manage_application_file is false.

  • manage_storage_areas (Boolean) (defaults to: $storm::webdav::params::manage_storage_areas)

    Set to True if you want to manage storage areas configuration. Default: true.

  • storage_areas_directory (String) (defaults to: $storm::webdav::params::storage_areas_directory)

    If defined, the properties files of the storage areas are copied and storage_areas parameter is ignored. Ignored if manage_storage_areas is false.

  • storage_areas (Array[Storm::Webdav::StorageArea]) (defaults to: $storm::webdav::params::storage_areas)

    List of storage area's configuration. Ignored if storage_areas_directory is defined. Ignored if manage_storage_areas is false.

  • oauth_issuers (Array[Storm::Webdav::OAuthIssuer]) (defaults to: $storm::webdav::params::oauth_issuers)

    List of OAuth issuers stored into application.yml. Ignored if application_file is defined.

  • hostnames (Array[String]) (defaults to: $storm::webdav::params::hostnames)

    Sets STORM_WEBDAV_HOSTNAME_(N) environment variables.

  • http_port (Integer) (defaults to: $storm::webdav::params::http_port)

    Sets STORM_WEBDAV_HTTP_PORT environment variable.

  • https_port (Integer) (defaults to: $storm::webdav::params::https_port)

    Sets STORM_WEBDAV_HTTPS_PORT environment variable.

  • trust_anchors_refresh_interval (Integer) (defaults to: $storm::webdav::params::trust_anchors_refresh_interval)

    Sets STORM_WEBDAV_TRUST_ANCHORS_REFRESH_INTERVAL environment variable.

  • max_concurrent_connections (Integer) (defaults to: $storm::webdav::params::max_concurrent_connections)

    Sets STORM_WEBDAV_MAX_CONNECTIONS environment variable.

  • max_queue_size (Integer) (defaults to: $storm::webdav::params::max_queue_size)

    Sets STORM_WEBDAV_MAX_QUEUE_SIZE environment variable.

  • connector_max_idle_time (Integer) (defaults to: $storm::webdav::params::connector_max_idle_time)

    Sets STORM_WEBDAV_CONNECTOR_MAX_IDLE_TIME environment variable.

  • vo_map_files_enable (Boolean) (defaults to: $storm::webdav::params::vo_map_files_enable)

    Sets STORM_WEBDAV_VO_MAP_FILES_ENABLE environment variable.

  • vo_map_files_config_dir (String) (defaults to: $storm::webdav::params::vo_map_files_config_dir)

    Sets STORM_WEBDAV_VO_MAP_FILES_CONFIG_DIR environment variable.

  • vo_map_files_refresh_interval (Integer) (defaults to: $storm::webdav::params::vo_map_files_refresh_interval)

    Sets STORM_WEBDAV_VO_MAP_FILES_REFRESH_INTERVAL environment variable.

  • tpc_max_connections (Integer) (defaults to: $storm::webdav::params::tpc_max_connections)

    Sets STORM_WEBDAV_TPC_MAX_CONNECTIONS environment variable.

  • tpc_verify_checksum (Boolean) (defaults to: $storm::webdav::params::tpc_verify_checksum)

    Sets STORM_WEBDAV_TPC_VERIFY_CHECKSUM environment variable.

  • jvm_opts (String) (defaults to: $storm::webdav::params::jvm_opts)

    Sets part of STORM_WEBDAV_JVM_OPTS environment variable.

  • authz_server_enable (Boolean) (defaults to: $storm::webdav::params::authz_server_enable)

    Sets STORM_WEBDAV_AUTHZ_SERVER_ENABLE environment variable.

  • authz_server_issuer (String) (defaults to: $storm::webdav::params::authz_server_issuer)

    Sets STORM_WEBDAV_AUTHZ_SERVER_ISSUER environment variable.

  • authz_server_max_token_lifetime_sec (Integer) (defaults to: $storm::webdav::params::authz_server_max_token_lifetime_sec)

    Sets STORM_WEBDAV_AUTHZ_SERVER_MAX_TOKEN_LIFETIME_SEC environment variable.

  • authz_server_secret (String) (defaults to: $storm::webdav::params::authz_server_secret)

    Sets STORM_WEBDAV_AUTHZ_SERVER_SECRET environment variable.

  • require_client_cert (Boolean) (defaults to: $storm::webdav::params::require_client_cert)

    Sets STORM_WEBDAV_REQUIRE_CLIENT_CERT environment variable.

  • use_conscrypt (Boolean) (defaults to: $storm::webdav::params::use_conscrypt)

    Sets STORM_WEBDAV_USE_CONSCRYPT environment variable.

  • tpc_use_conscrypt (Boolean) (defaults to: $storm::webdav::params::tpc_use_conscrypt)

    Sets STORM_WEBDAV_TPC_USE_CONSCRYPT environment variable.

  • enable_http2 (Boolean) (defaults to: $storm::webdav::params::enable_http2)

    Sets STORM_WEBDAV_ENABLE_HTTP2 environment variable.

  • debug (Boolean) (defaults to: $storm::webdav::params::debug)

    Sets part of STORM_WEBDAV_JVM_OPTS environment variable. It enables remote debug.

  • debug_port (Integer) (defaults to: $storm::webdav::params::debug_port)

    Sets part of STORM_WEBDAV_JVM_OPTS environment variable. It sets the remote debug port if remote debug is enabled.

  • debug_suspend (Boolean) (defaults to: $storm::webdav::params::debug_suspend)

    Sets part of STORM_WEBDAV_JVM_OPTS environment variable. It sets debug suspend value in case remote debug is enabled.

  • storm_limit_nofile (Integer) (defaults to: $storm::webdav::params::storm_limit_nofile)

    Sets LimitNOFILE value.



136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'manifests/webdav.pp', line 136

class storm::webdav (

  Boolean $manage_application_file = $storm::webdav::params::manage_application_file,
  String $application_file = $storm::webdav::params::application_file,
  Array[Storm::Webdav::OAuthIssuer] $oauth_issuers = $storm::webdav::params::oauth_issuers,

  Boolean $manage_storage_areas = $storm::webdav::params::manage_storage_areas,
  String $storage_areas_directory = $storm::webdav::params::storage_areas_directory,
  Array[Storm::Webdav::StorageArea] $storage_areas = $storm::webdav::params::storage_areas,

  Array[String] $hostnames = $storm::webdav::params::hostnames,
  Integer $http_port = $storm::webdav::params::http_port,
  Integer $https_port = $storm::webdav::params::https_port,
  Integer $trust_anchors_refresh_interval = $storm::webdav::params::trust_anchors_refresh_interval,
  Integer $max_concurrent_connections = $storm::webdav::params::max_concurrent_connections,
  Integer $max_queue_size = $storm::webdav::params::max_queue_size,
  Integer $connector_max_idle_time = $storm::webdav::params::connector_max_idle_time,
  Boolean $vo_map_files_enable = $storm::webdav::params::vo_map_files_enable,
  String $vo_map_files_config_dir = $storm::webdav::params::vo_map_files_config_dir,
  Integer $vo_map_files_refresh_interval = $storm::webdav::params::vo_map_files_refresh_interval,
  Integer $tpc_max_connections = $storm::webdav::params::tpc_max_connections,
  Boolean $tpc_verify_checksum = $storm::webdav::params::tpc_verify_checksum,
  String $jvm_opts = $storm::webdav::params::jvm_opts,
  Boolean $authz_server_enable = $storm::webdav::params::authz_server_enable,
  String $authz_server_issuer = $storm::webdav::params::authz_server_issuer,
  Integer $authz_server_max_token_lifetime_sec = $storm::webdav::params::authz_server_max_token_lifetime_sec,
  String $authz_server_secret = $storm::webdav::params::authz_server_secret,
  Boolean $require_client_cert = $storm::webdav::params::require_client_cert,
  Boolean $use_conscrypt = $storm::webdav::params::use_conscrypt,
  Boolean $tpc_use_conscrypt = $storm::webdav::params::tpc_use_conscrypt,
  Boolean $enable_http2 = $storm::webdav::params::enable_http2,
  Boolean $debug = $storm::webdav::params::debug,
  Integer $debug_port = $storm::webdav::params::debug_port,
  Boolean $debug_suspend = $storm::webdav::params::debug_suspend,

  Integer $storm_limit_nofile = $storm::webdav::params::storm_limit_nofile,

) inherits storm::webdav::params {

  contain storm::webdav::install
  contain storm::webdav::config
  contain storm::webdav::service

  Class['storm::webdav::install']
  -> Class['storm::webdav::config']
  -> Class['storm::webdav::service']
}