Defined Type: storm::service_hostcert

Defined in:
manifests/service_hostcert.pp

Summary

Copy hostcert.pem and hostkey.pem from '/etc/grid-security' to the hostcert and hostkey required path, with owner and group specified.

Overview

Examples:

Basic usage

storm::service_hostcert { 'storm-webdav service host credentials':
  hostcert => '/etc/grid-security/storm-webdav/hostcert.pem',
  hostkey => '/etc/grid-security/storm-webdav/hostkey.pem'
  owner => 'storm',
  group => 'storm',
}

Parameters:

  • hostcert (String)

    The host certificate path where '/etc/grid-security/hostcert.pem' is copied. Required.

  • hostkey (String)

    The host key path where '/etc/grid-security/hostkey.pem' is copied. Required.

  • owner (String)

    Certificate and key's owner. Required.

  • group (String)

    Certificate and key's group name. Required.



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'manifests/service_hostcert.pp', line 22

define storm::service_hostcert (
  String $hostcert,
  String $hostkey,
  String $owner,
  String $group,
) {

  file { $hostcert:
    ensure => present,
    mode   => '0644',
    owner  => $owner,
    group  => $group,
    source => '/etc/grid-security/hostcert.pem',
  }

  file { $hostkey:
    ensure => present,
    mode   => '0400',
    owner  => $owner,
    group  => $group,
    source => '/etc/grid-security/hostkey.pem',
  }
}