forked from ISTI-ansible-roles/ansible-role-mailman
156 lines
5.1 KiB
YAML
156 lines
5.1 KiB
YAML
---
|
|
mailman_user: 'mailman'
|
|
mailman_srv_user: '{{ mailman_user }}'
|
|
mailman_api_user: 'restadmin'
|
|
mailman_home: '/opt/{{ mailman_user }}'
|
|
mailman_conf_dir: '/etc/mailman'
|
|
mailman_var_dir: '/var/lib/mailman'
|
|
mailman_log_dir: '/var/log/mailman'
|
|
mailman_lock_dir: '/var/lock/mailman'
|
|
mailman_spool_dir: '/var/spool/mailman'
|
|
mailman_layout: 'fhs'
|
|
mailman_site_owner: 'mailman@example.com'
|
|
mailman_from_email: 'mailman@example.com'
|
|
mailman_server_email: 'mailman@example.com'
|
|
mailman_noreply_addr: 'noreply'
|
|
mailman_use_memcache: False
|
|
mailman_memcache_hosts: '127.0.0.1:11211'
|
|
mailman_site_url: 'http://localhost'
|
|
mailman_logrotate_freq: 'weekly'
|
|
mailman_logrotate_retain: 10
|
|
|
|
# Documentation that must be followed to configure the social auth providers
|
|
# https://django-allauth.readthedocs.io/en/latest/installation.html
|
|
mailman_use_social_account_providers: False
|
|
mailman_postorious_social_auth_providers:
|
|
- 'django_mailman3.lib.auth.fedora'
|
|
- 'allauth.socialaccount.providers.openid'
|
|
- 'allauth.socialaccount.providers.github'
|
|
- 'allauth.socialaccount.providers.gitlab'
|
|
- 'allauth.socialaccount.providers.google'
|
|
- 'allauth.socialaccount.providers.facebook'
|
|
- 'allauth.socialaccount.providers.twitter'
|
|
- 'allauth.socialaccount.providers.stackexchange'
|
|
|
|
|
|
mailman_admins:
|
|
- "'Mailman Suite Admin', 'mailman@example.com'"
|
|
|
|
mailman_rh_dependencies:
|
|
- python3
|
|
- python3-pip
|
|
- python36-virtualenv
|
|
- git
|
|
- lynx
|
|
|
|
mailman_postorious_rh_dependencies:
|
|
- uwsgi-logger-systemd
|
|
- uwsgi-plugin-python36
|
|
- uwsgi
|
|
- sassc
|
|
|
|
mailman_virtualenv_name: 'venv'
|
|
mailman_bindir: '{{ mailman_home }}/{{ mailman_virtualenv_name }}/bin'
|
|
|
|
mailman_pip_packages:
|
|
- { pkg: 'mailman' }
|
|
- { pkg: 'rcssmin', extra_args: '--install-option="--without-c-extensions"' }
|
|
- { pkg: 'rjsmin' }
|
|
- { pkg: 'django-compressor' }
|
|
- { pkg: 'django', version: '2.2.9' }
|
|
- { pkg: 'postorius' }
|
|
- { pkg: 'hyperkitty' }
|
|
- { pkg: 'mailman-hyperkitty' }
|
|
- { pkg: 'psycopg2-binary' }
|
|
- { pkg: 'whoosh' }
|
|
|
|
mailman_db: postgresql
|
|
mailman_db_host: 'localhost'
|
|
mailman_db_name: mailman
|
|
mailman_db_user: mailman_u
|
|
# mailman_db_pwd: ''
|
|
|
|
mailman_mta_incoming: 'mailman.mta.postfix.LMTP'
|
|
mailman_mta_outgoing: 'mailman.mta.deliver.deliver'
|
|
mailman_lmtp_host: 'localhost'
|
|
mailman_lmtp_port: 1024
|
|
mailman_smtp_host: '127.0.0.1'
|
|
mailman_smtp_port: 25
|
|
mailman_smtp_auth: False
|
|
mailman_smtp_user: ''
|
|
mailman_smtp_pwd: ''
|
|
mailman_smtp_secure_mode: starttls
|
|
mailman_smtp_conf: '{{ mailman_conf_dir }}/postfix-mailman.cfg'
|
|
mailman_transport_file_type: regex
|
|
mailman_install_maintenance_cronjobs: True
|
|
|
|
mailman_password_length: 12
|
|
mailman_webservice_hostname: 'localhost'
|
|
mailman_webservice_port: 8001
|
|
mailman_webservice_https: 'no'
|
|
mailman_webservice_tracebacks: 'no'
|
|
# mailman_rest_api_pwd: ''
|
|
|
|
mailman_arc_enabled: 'no'
|
|
mailman_dmarc_enabled: 'yes'
|
|
mailman_dkim_enabled: 'yes'
|
|
|
|
mailman_antispam_header_checks:
|
|
- 'X-Spam: (yes|maybe)'
|
|
- 'X-Spam: (YES)'
|
|
- 'X-Spam-Flag: (yes|maybe)'
|
|
- 'X-Spam-Flag: (YES)'
|
|
#- 'Authentication-Results: mail.example.com; dmarc=(fail|quarantine)'
|
|
|
|
mailman_start_nntp_runner: 'no'
|
|
|
|
mailman_repository: 'https://gitlab.com/mailman/mailman-suite.git'
|
|
mailman_postorious_var_dir: var
|
|
mailman_postorious_log_base_dir: log
|
|
mailman_postorious_log_dest_dir: mailmansuite
|
|
mailman_postorious_log_dir: '/{{ mailman_postorious_var_dir }}/{{ mailman_postorious_log_base_dir }}/{{ mailman_postorious_log_dest_dir }}'
|
|
mailman_postorious_dir: '{{ mailman_home }}/mailman-suite/mailman-suite_project'
|
|
mailman_postorious_http_port: 8000
|
|
# 'systemd_logger,logfile,python36'
|
|
mailman_postorious_uwsgi_plugins: 'systemd_logger,python36'
|
|
# 1 is the predefined one, that must be deleted
|
|
mailman_postorious_site_id: 2
|
|
mailman_postorious_allowed_hosts:
|
|
- 'localhost'
|
|
- '{{ ansible_fqdn }}'
|
|
mailman_postorious_hyperkitty_acl: "'127.0.0.1', '::1', '{{ ansible_default_ipv4.address }}'"
|
|
|
|
mailman_postorious_settings_files:
|
|
- { name: 'manage.py', perms: '0750' }
|
|
- { name: 'settings.py', perms: '0440' }
|
|
- { name: 'wsgi.py', perms: '0440' }
|
|
|
|
mailman_postorious_db_engine: 'django.db.backends.postgresql_psycopg2'
|
|
mailman_postorious_db_name: mailmansuite
|
|
mailman_postorious_db_user: mailmansuite_u
|
|
# mailman_postorious_db_password:
|
|
mailman_postorious_db_host: 'localhost'
|
|
mailman_postorious_db_port: ''
|
|
mailman_use_hyperkitty_archiver: True
|
|
#
|
|
# @hourly apache django-admin runjobs hourly --pythonpath /path/to/project --settings settings
|
|
# @daily apache django-admin runjobs daily --pythonpath /path/to/project --settings settings
|
|
# @weekly apache django-admin runjobs weekly --pythonpath /path/to/project --settings settings
|
|
# @monthly apache django-admin runjobs monthly --pythonpath /path/to/project --settings settings
|
|
# @yearly apache django-admin runjobs yearly --pythonpath /path/to/project --settings settings
|
|
# * * * * * apache django-admin runjobs minutely --pythonpath /path/to/project --settings settings
|
|
# 2,17,32,47 * * * * apache django-admin runjobs quarter_hourly --pythonpath /path/to/project --settings settings
|
|
mailman_postorious_cronjob_frequency:
|
|
- 'yearly'
|
|
- 'monthly'
|
|
- 'weekly'
|
|
- 'daily'
|
|
- 'hourly'
|
|
|
|
mailman_postorious_cronjob_special_times:
|
|
- 'quarter_hourly'
|
|
- 'minutely'
|
|
|
|
|
|
|