ansible-collection/roles/dcaass/defaults/main.yml
GregoryDosh b24a51083d
Some checks failed
Create Release / Create Release (push) Failing after 6s
Update Version / Update Version (push) Successful in 6s
ci: adjust ci to use more license information & sha for tracing
2024-12-10 20:40:44 -06:00

75 lines
3.2 KiB
YAML

# Ansible Roles for managing Auengun.net Infrastructure & Testing/Learning.
# Source available at git.auengun.net/homelab/ansible-collection
# Copyright (C) 2023 GregoryDosh
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 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 Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2023 GregoryDosh
---
# Make sure all the VAR names below
# are captured in `roles/dcaass/tasks/pre-setup-and-validation.yml``
# appropriately. Don't want anything slipping through somehow :-)
DCAASS_CONFIG_PATH: /dcaass/
DCAASS_CONFIG_USER_NAME: dcaass
DCAASS_CONFIG_GROUP_NAME: dcaass
DCAASS_CONFIG_DIR_MODE: "0750"
DCAASS_CONFIG_FILE_MODE: "0640"
DCAASS_ENV_FILE_NAME: .env
DCAASS_ENV_EXTRA_CONFIG: ""
DCAASS_EXTRA_CONFIG_DIRS: []
# Format should look like
# DCAASS_EXTRA_CONFIG_FILES:
# - { src: "templates/file.ext.j2", dest: "/absolute/path/to/file.ext" }
DCAASS_EXTRA_CONFIG_FILES: []
DCAASS_SERVICE_ANSIBLE_ALLOW_RESTART: true
DCAASS_SERVICE_ANSIBLE_RESTART_ASYNC: false
DCAASS_SERVICE_ANSIBLE_RESTART_ASYNC_FAIL_SEC: 45
DCAASS_SERVICE_ANSIBLE_RESTART_ASYNC_POLL_SEC: 0
DCAASS_SERVICE_ANSIBLE_RELOAD_TYPE: restarted
DCAASS_SERVICE_NAME: dcaass
DCAASS_SERVICE_REQUIRES: docker.service network-online.target
DCAASS_SERVICE_AFTER: "{{ DCAASS_SERVICE_REQUIRES }}"
DCAASS_DOCKER_COMPOSE_CREATE_EXTRA_OPTIONS: "--remove-orphans"
DCAASS_DOCKER_COMPOSE_EXTRA_UP_OPTIONS: "--remove-orphans"
DCAASS_DOCKER_COMPOSE_EXTRA_DOWN_OPTIONS: ""
DCAASS_SERVICE_RESTART_POLICY: on-failure
DCAASS_SERVICE_RESTART_SEC: 30
DCAASS_SERVICE_EXTRA_CONFIG_UNIT: ""
DCAASS_SERVICE_EXTRA_CONFIG_SERVICE: ""
DCAASS_SERVICE_EXTRA_CONFIG_INSTALL: ""
DCAASS_SERVICE_USER_NAME: root
DCAASS_SERVICE_GROUP_NAME: root
DCAASS_DOCKER_DAEMON_ALLOW_RESTART: true
DCAASS_DOCKER_PRIVATE_MIRROR_INSTALL: true
DCAASS_DOCKER_PRUNE_SERVICE_INSTALL: true
DCAASS_DOCKER_PRUNE_SERVICE_NAME: "{{ DCAASS_SERVICE_NAME }}_prune"
DCAASS_DOCKER_PRUNE_SERVICE_USER_NAME: "{{ DCAASS_SERVICE_USER_NAME }}"
DCAASS_DOCKER_PRUNE_SERVICE_GROUP_NAME: "{{ DCAASS_SERVICE_GROUP_NAME }}"
DCAASS_DOCKER_COMPOSE_PATH: "templates/docker-compose.yml"
DCAASS_DOCKER_COMPOSE_BASE_TEMPLATE: |
{{ lookup('template', DCAASS_DOCKER_COMPOSE_PATH) }}
DCAASS_DOCKER_COMPOSE_YAML_OVERRIDES: {}
DCAASS_DOCKER_COMPOSE: "{{ DCAASS_DOCKER_COMPOSE_BASE_TEMPLATE | from_yaml | combine(((DCAASS_DOCKER_COMPOSE_YAML_OVERRIDES | from_yaml) if (DCAASS_DOCKER_COMPOSE_YAML_OVERRIDES | from_yaml) is mapping else {}), recursive=True) }}"
DCAASS_DOCKER_COMPOSE_PULL_INITIAL_IMAGES: true
DCAASS_DOCKER_COMPOSE_BUILD_INITIAL_IMAGES: false
DCAASS_DOCKER_COMPOSE_SEPARATOR: " " # Or "-" for old docker-compose style behavior