Puppet Class: mailcatcher::config
- Defined in:
- manifests/config.pp
Overview
class mailcatcher::config
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/config.pp', line 3
class mailcatcher::config {
user { 'mailcatcher':
ensure => 'present',
comment => 'Mailcatcher Mock Smtp Service User',
home => '/var/spool/mailcatcher',
shell => '/bin/true',
}
$options = sort(join_keys_to_values({' --smtp-ip' => $mailcatcher::smtp_ip,
' --smtp-port' => $mailcatcher::smtp_port,
' --http-ip' => $mailcatcher::http_ip,
' --http-port' => $mailcatcher::http_port,
}, ' '))
file {$mailcatcher::params::config_file:
ensure => 'file',
content => template($mailcatcher::params::template),
mode => '0755',
notify => Class['mailcatcher::service']
}
file {'/var/log/mailcatcher':
ensure => 'directory',
owner => 'mailcatcher',
group => 'mailcatcher',
mode => '0755',
require => User['mailcatcher']
}
}
|