Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
- Puppet >= 4.10.0 < 7.0.0
- , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'thor77-sogo', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
puppet-sogo
Module to manage SOGo groupware
Example
$database = 'postgresql://sogo@127.0.0.1/sogo'
class { 'sogo':
# postgresql support
extra_packages => ['sope4.9-gdl1-postgresql'],
config => {
'SOGoProfileURL' => "${database}/sogo_user_profile",
'OCSFolderInfoURL' => "${database}/sogo_folder_info",
'OCSSessionsFolderURL' => "${database}/sogo_sessions_folder",
'SOGoSieveScriptsEnabled' => 'YES',
'SOGoMailCustomFromEnabled' => 'YES',
'SOGoUserSources' => [
{
'type' => 'sql',
'id' => 'directory',
'viewURL' => 'postgresql://sogo@127.0.0.1/sogo/sogo_view',
'canAuthenticate' => 'YES',
'isAddressBook' => 'YES',
'userPasswordAlgorithm' => 'md5',
},
],
},
envconfig => {
'PREFORK' => 3,
},
}
Multiple user sources can be defined as an array of hashes
class { 'sogo':
...
config => {
'SOGoUserSources' => [
{
'type' => 'sql',
'id' => 'directory',
'viewURL' => "${database}/sogo_view",
'canAuthenticate' => 'YES',
'isAddressBook' => 'YES',
'userPasswordAlgorithm' => 'md5',
},
{
'type' => 'sql',
'id' => 'addressbook',
'viewURL' => "${database}/sogo_view_addresses",
'canAuthenticate' => 'NO',
'isAddressBook' => 'YES',
},
],
}
...
}
Multidomain example
class { 'sogo':
...
config => {
'domains' => {
'example.org' => {
'SOGoSieveScriptsEnabled' => 'NO',
'SOGoUserSources' => [
{
'type' => 'sql',
'id' => 'directory',
'viewURL' => 'postgresql://sogo@127.0.0.1/sogo/sogo_view',
},
],
},
'example.net' => {
'SOGoSieveScriptsEnabled' => 'YES',
'SOGoUserSources' => [
{
'type' => 'sql',
'id' => 'directory',
'viewURL' => 'postgresql://sogo@127.0.0.1/sogo/sogo_view',
},
],
},
},
}
...
Reference
Table of Contents
Classes
Public Classes
sogo
: SoGo init class
Private Classes
sogo::config
: Manage SoGo configurationsogo::envconfig
: Manage SoGo environment parameterssogo::install
: Manage SoGO installationsogo::service
: Manage SoGo service
Classes
sogo
SoGo init class
Parameters
The following parameters are available in the sogo
class.
package_name
Data type: String
Name of the SOGo package
package_ensure
Data type: String
Ensure for package resource
extra_packages
Data type: Array[String]
Additional packages to install using package_ensure as ensure value
service_name
Data type: String
Name of the SOGo service
service_ensure
Data type: String
Ensure for service resource
config_path
Data type: String
Path to configuration file
envconfig_path
Data type: String
path to environment configuration
config
Data type: Hash
SOGo configuration
envconfig
Data type: Hash
environment configuration
Changelog
All notable changes to this project will be documented in this file.
v1.0.0 (2020-11-22)
Changes:
Until this change the Puppet Hash
type was templated as an SOGo config array with the hash as it's only element.
After it, Puppet types are rendered as their correct counterparts.
As the config key SOGoUserSources
requires an SOGo config array, you probably have to adjust the value provided to the $config
parameter.
v0.3.0 (2020-10-14)
Changes:
Dependencies
- puppetlabs/stdlib (>= 4.13.1 < 7.0.0)