puppet-prod/modules/stalwart/manifests/config.pp
Ben Vincent 788eae058b feat: create stalwart module
- add stalwart module
- add psql database on the shared patroni instance
2025-11-02 22:23:45 +11:00

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',
}
}