63 lines
2.2 KiB
YAML

---
cinny_user: cinny
cinny_state: "present"
cinny_version: "4.2.1"
cinny_deployment_method: "host"
cinny_base_path: "/opt/cinny"
cinny_source_path: "{{ cinny_base_path }}/src"
cinny_dist_path: "{{ cinny_source_path }}/dist"
cinny_config_path: "{{ cinny_base_path }}/config"
cinny_config_file: "{{ cinny_config_path }}/config.json"
cinny_container_image: >-
{{
cinny_container_image_registry + '/'
+ ((cinny_container_image_namespace + '/')
if cinny_container_image_namespace | default(false, true) else '')
+ cinny_container_image_name + ':'
+ (cinny_container_image_tag | default('v' + cinny_version, true))
}}
cinny_container_image_registry: "ghcr.io"
cinny_container_image_namespace: "cinnyapp"
cinny_container_image_name: "cinny"
cinny_container_image_tag: ~
cinny_container_name: "cinny"
cinny_container_restart_policy: >-
{{ (cinny_deployment_method == 'docker')
| ternary('unless-stopped',
(cinny_deployment_method == 'podman' |
ternary('on-failure', 'always'))
}}
cinny_host_uid: >-
{{ cinny_user_info is defined
| ternary(cinny_user_info.uid, cinny_user) }}
cinny_host_gid:
{{ cinny_user_info is defined
| ternary(cinny_user_info.group, cinny_user) }}
cinny_config_complete: >-
{{ cinny_config | default({})
| combine(cinny_default_config | default({})) }}
cinny_config: {}
cinny_default_config:
homeserverList: "{{ cinny_config_homeserver_list }}"
allowCustomHomeservers: "{{ cinny_config_allow_custom_homeservers }}"
featuredCommunities:
openAsDefault: "{{ cinny_config_featured_communities_open_as_default }}"
spaces: "{{ cinny_config_featured_communities_spaces }}"
rooms: "{{ cinny_config_featured_communities_rooms }}"
servers: "{{ cinny_config_featured_communities_servers }}"
hashRouter:
enabled: "{{ cinny_config_hash_router_enabled }}"
basename: "{{ cinny_config_hash_router_basename }}"
cinny_config_homeserver_list: []
cinny_config_allow_custom_homeservers: true
cinny_config_featured_communities_open_as_default: false
cinny_config_featured_communities_spaces: []
cinny_config_featured_communities_rooms: []
cinny_config_featured_communities_servers: []
cinny_config_hash_router_enabled: false
cinny_config_hash_router_basename: "/"