infrastructure/roles/mastodon/defaults/main.yml
2020-08-10 01:37:13 +02:00

60 lines
2.2 KiB
YAML

---
# Default variables for the mastodon role
# Infrastructure
# Ansible instructions to deploy the infrastructure
# Copyright (C) 2019-2020 Christoph (Sheogorath) Kern
# Copyright (C) 2020 Saibotk
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# The install location
mastodon_install_location: /srv/mastodon
# The container data volume mount locations
mastodon_database_location: "{{ mastodon_install_location }}/postgres"
mastodon_public_location: "{{ mastodon_install_location }}/public"
mastodon_redis_location: "{{ mastodon_install_location }}/redis"
mastodon_elastic_location: "{{ mastodon_install_location }}/elasticsearch"
mastodon_nginx_location: "{{ mastodon_install_location }}/nginx"
# The certresolver that is used by traefik for this domain
mastodon_traefik_certresolver: letsencrypt_http
# The domain that traefik will server mastodon under
mastodon_domain: mastodon.example.com
# The mastodon configuration (see mastodon documentation for a reference / the `templates/.env.production` file)
mastodon_config:
local_domain: "{{ mastodon_domain }}"
secret_key_base: undef
otp_secret: undef
vapid_private_key: undef
vapid_public_key: undef
smtp_server: localhost
smtp_login: undef
smtp_password: undef
smtp_from_address: mastodon@example.com
enable_elasticsearch: false
# Container versions
mastodon_version: 3.2.0
mastodon_database_version: 9.6
mastodon_redis_version: 5.0
mastodon_elasticsearch_version: 6.8.6
# Container tag definitions
mastodon_image_version: "v{{ mastodon_version }}"
mastodon_database_image_version: "{{ mastodon_database_version }}-alpine"
mastodon_redis_image_version: "{{ mastodon_redis_version }}-alpine"
mastodon_elasticsearch_image_version: "{{ mastodon_elasticsearch_version }}"