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