Puppet Class: tripleo::stunnel

Defined in:
manifests/stunnel.pp

Overview

Class: tripleo::stunnel

Installs and starts stunnel

foreground

(Optional) Sets the configuration for stunnel to run the process in the foreground. This is useful when trying to run stunnel in a container. Defaults to ‘no’

debug

(Optional) Sets the debug level in stunnel.conf Defaults to ‘4’ which translates to ‘warning’.

Parameters:

  • foreground (Any) (defaults to: 'no')
  • debug (Any) (defaults to: 'warning')


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'manifests/stunnel.pp', line 30

class tripleo::stunnel (
  $foreground = 'no',
  $debug      = 'warning',
){
  package { 'stunnel':
    ensure => 'present'
  }

  concat { '/etc/stunnel/stunnel.conf':
    ensure => present,
  }
  concat::fragment { 'stunnel-foreground':
    target  => '/etc/stunnel/stunnel.conf',
    order   => '10-foreground-config',
    content => template('tripleo/stunnel/foreground.erb'),
  }
}