- add stalwart module - add psql database on the shared patroni instance - add ceph-rgw credentials to eyaml - ensure psql pass and s3 access key are converted to sensitive
32 lines
710 B
Puppet
32 lines
710 B
Puppet
# @summary Manages Stalwart Mail Server configuration
|
|
#
|
|
# @api private
|
|
class stalwart::config {
|
|
assert_private()
|
|
|
|
# Main configuration file
|
|
file { "${stalwart::config_dir}/config.toml":
|
|
ensure => file,
|
|
owner => 'stalwart',
|
|
group => 'stalwart',
|
|
mode => '0640',
|
|
content => template('stalwart/config.toml.erb'),
|
|
notify => Service['stalwart'],
|
|
}
|
|
|
|
# Create directories for storage
|
|
file { "${stalwart::data_dir}/queue":
|
|
ensure => directory,
|
|
owner => 'stalwart',
|
|
group => 'stalwart',
|
|
mode => '0750',
|
|
}
|
|
|
|
file { "${stalwart::data_dir}/reports":
|
|
ensure => directory,
|
|
owner => 'stalwart',
|
|
group => 'stalwart',
|
|
mode => '0750',
|
|
}
|
|
|
|
} |