Defined Type: storm::webdav::application_file

Defined in:
manifests/webdav/application_file.pp

Summary

Starting from Puppet module v2.0.0, the management of application.yml file has been removed from storm::webdav class. Site administrators can edit their own configuration files or use this defined type to inject one or more YAML files into the proper directory.

Overview

Examples:

class { 'storm::webdav':
  hostnames => ['storm-webdav.test.example', 'alias-for-storm-webdav.test.example'],
}
storm::webdav::application_file { 'application.yml':
  source => '/path/to/my/application.yml',
}
storm::webdav::application_file { 'application-wlcg.yml':
  source => '/path/to/my/application-wlcg.yml',
}

Parameters:

  • source (String)

    The source of file resource. It can be an absolute path or a Puppet module relative path.



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/webdav/application_file.pp', line 20

define storm::webdav::application_file (
  String $source,
) {
  file { "/etc/storm/webdav/config/${title}":
    ensure  => file,
    source  => $source,
    owner   => 'root',
    group   => 'storm',
    mode    => '0644',
    notify  => Service['storm-webdav'],
    require => Class['storm::webdav::install'],
  }
}