WIP: feat(sharkey): add ansible role for deployment
This commit is contained in:
15
roles/sharkey/defaults/main/compose.yml
Normal file
15
roles/sharkey/defaults/main/compose.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
sharkey_compose_state: "{{ sharkey_state }}"
|
||||
sharkey_compose_project_name: "sharkey"
|
||||
sharkey_compose_project_src: "/etc/sharkey"
|
||||
sharkey_compose_upstream_file: "{{ sharkey_compose_project_src }}/compose.upstream.yml"
|
||||
sharkey_compose_file: "{{ sharkey_compose_project_src }}/compose.yml"
|
||||
sharkey_compose_build: >-2
|
||||
{{ (sharkey_container_image_source == 'pull') | ternary('never', 'policy') }}
|
||||
sharkey_compose_build: "never"
|
||||
|
||||
sharkey_repo_server: "https://activitypub.software"
|
||||
sharkey_repo_path: "Transfem-org/Sharkey"
|
||||
sharkey_repo_tag: "{{ sharkey_version }}"
|
||||
sharkey_compose_file_url: >-2
|
||||
{{ sharkey_repo_server }}/{{ sharkey_repo_path }}/-/raw/{{ sharkey_version }}/compose_example.yml?ref_type=tags
|
3
roles/sharkey/defaults/main/config.yml
Normal file
3
roles/sharkey/defaults/main/config.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
sharkey_config_url: ~
|
||||
sharkey_config_setup_password: ~
|
24
roles/sharkey/defaults/main/container.yml
Normal file
24
roles/sharkey/defaults/main/container.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
sharkey_container_name: sharkey
|
||||
sharkey_container_image_registry: "registry.activitypub.software"
|
||||
sharkey_container_iamge_namespace: "transfem-org"
|
||||
sharkey_container_image_name: "sharkey"
|
||||
sharkey_container_image_repository: >-2
|
||||
{{
|
||||
[
|
||||
sharkey_container_image_registry | default([], true),
|
||||
sharkey_container_iamge_namespace | default([], true),
|
||||
sharkey_container_image_name
|
||||
] | flatten | join('/')
|
||||
}}
|
||||
sharkey_container_image_tag: ~
|
||||
sharkey_container_image_source: pull
|
||||
sharkey_container_image_force_source: >-2
|
||||
{{ sharkey_container_image_tag | default(false, true) | bool }}
|
||||
sharkey_container_image: >-2
|
||||
{{
|
||||
[
|
||||
sharkey_container_image_repository,
|
||||
sharkey_container_image_tag | default(sharkey_version, true)
|
||||
] | join(':')
|
||||
}}
|
8
roles/sharkey/defaults/main/main.yml
Normal file
8
roles/sharkey/defaults/main/main.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
sharkey_user: sharkey
|
||||
sharkey_version: "2025.4.3"
|
||||
sharkey_config_dir: "/etc/sharkey"
|
||||
sharkey_data_dir: "/var/lib/sharkey"
|
||||
|
||||
sharkey_state: present
|
||||
sharkey_deployment_method: "docker-compose"
|
10
roles/sharkey/defaults/main/user.yml
Normal file
10
roles/sharkey/defaults/main/user.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
sharkey_user_system: true
|
||||
sharkey_user_create_home: false
|
||||
sharkey_user_groups: ~
|
||||
sharkey_user_append_groups: >-2
|
||||
{{ sharkey_user_groups | default(omit, true) }}
|
||||
sharkey_user_uid: >-2
|
||||
{{ sharkey_user_info.uid | default(sharkey_user) }}
|
||||
sharkey_user_gid: >-2
|
||||
{{ sharkey_user_info.group | default(sharkey_user) }}
|
Reference in New Issue
Block a user