feat(ezbookkeeping): release ezbookkeeping
deployment notes: - use ezbookkeeping for budget - compare to actual budget - it has no RBAC and sharing budget, try to sure (we-promise/sure)
This commit is contained in:
@@ -111,8 +111,8 @@ services:
|
||||
http: "3003"
|
||||
actualbudget:
|
||||
domain:
|
||||
public: "budget"
|
||||
internal: "budget.app"
|
||||
public: "actualbudget"
|
||||
internal: "actualbudget.app"
|
||||
ports:
|
||||
http: "5006"
|
||||
subuid: "101000"
|
||||
@@ -163,6 +163,13 @@ services:
|
||||
ports:
|
||||
http: "9980"
|
||||
subuid: "101000"
|
||||
ezbookkeeping:
|
||||
domain:
|
||||
public: "budget"
|
||||
internal: "budget.app"
|
||||
ports:
|
||||
http: "8003"
|
||||
subuid: "100999"
|
||||
|
||||
version:
|
||||
packages:
|
||||
@@ -201,3 +208,4 @@ version:
|
||||
affine: "0.26.3"
|
||||
nextcloud: "33.0.3"
|
||||
collabora: "25.04.9.4.1"
|
||||
ezbookkeeping: "1.4.0"
|
||||
|
||||
@@ -241,6 +241,14 @@
|
||||
tags: ["site", "collabora"]
|
||||
tags: ["site", "collabora"]
|
||||
|
||||
- name: Set ezbookkeeping
|
||||
ansible.builtin.include_role:
|
||||
name: "app"
|
||||
tasks_from: "services/set_ezbookkeeping"
|
||||
apply:
|
||||
tags: ["site", "ezbookkeeping"]
|
||||
tags: ["site", "ezbookkeeping"]
|
||||
|
||||
- name: Flush handlers right now
|
||||
ansible.builtin.meta: "flush_handlers"
|
||||
|
||||
|
||||
@@ -122,3 +122,14 @@
|
||||
changed_when: false
|
||||
listen: "notification_restart_collabora"
|
||||
ignore_errors: true # noqa: ignore-errors
|
||||
|
||||
- name: Restart ezbookkeeping
|
||||
ansible.builtin.systemd:
|
||||
name: "ezbookkeeping.service"
|
||||
state: "restarted"
|
||||
enabled: true
|
||||
scope: "user"
|
||||
daemon_reload: true
|
||||
changed_when: false
|
||||
listen: "notification_restart_ezbookkeeping"
|
||||
ignore_errors: true # noqa: ignore-errors
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
---
|
||||
- name: Create ezbookkeeping directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ node['home_path'] }}/{{ item }}"
|
||||
state: "directory"
|
||||
owner: "{{ services['ezbookkeeping']['subuid'] }}"
|
||||
group: "svadmins"
|
||||
mode: "0770"
|
||||
loop:
|
||||
- "data/containers/ezbookkeeping"
|
||||
- "data/containers/ezbookkeeping/data"
|
||||
- "containers/ezbookkeeping"
|
||||
- "containers/ezbookkeeping/ssl"
|
||||
become: true
|
||||
|
||||
|
||||
- name: Deploy root certificate
|
||||
ansible.builtin.copy:
|
||||
content: |
|
||||
{{ hostvars['console']['ca']['root']['crt'] }}
|
||||
dest: "{{ node['home_path'] }}/containers/ezbookkeeping/ssl/{{ root_cert_filename }}"
|
||||
owner: "{{ services['ezbookkeeping']['subuid'] }}"
|
||||
group: "svadmins"
|
||||
mode: "0440"
|
||||
become: true
|
||||
notify: "notification_restart_ezbookkeeping"
|
||||
no_log: true
|
||||
|
||||
- name: Register secret value to podman secret
|
||||
containers.podman.podman_secret:
|
||||
name: "{{ item.name }}"
|
||||
data: "{{ item.value }}"
|
||||
state: "present"
|
||||
force: true
|
||||
loop:
|
||||
- name: "EBK_AUTH_OAUTH2_CLIENT_SECRET"
|
||||
value: "{{ hostvars['console']['ezbookkeeping']['oidc']['secret'] }}"
|
||||
- name: "EBK_DATABASE_PASSWD"
|
||||
value: "{{ hostvars['console']['postgresql']['password']['ezbookkeeping'] }}"
|
||||
notify: "notification_restart_ezbookkeeping"
|
||||
no_log: true
|
||||
|
||||
- name: Deploy ezbookkeeping.container file
|
||||
ansible.builtin.template:
|
||||
src: "{{ hostvars['console']['node']['config_path'] }}/services/containers/app/ezbookkeeping/ezbookkeeping.container.j2"
|
||||
dest: "{{ node['home_path'] }}/.config/containers/systemd/ezbookkeeping.container"
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "svadmins"
|
||||
mode: "0644"
|
||||
notify: "notification_restart_ezbookkeeping"
|
||||
|
||||
- name: Enable ezbookkeeping.service
|
||||
ansible.builtin.systemd:
|
||||
name: "ezbookkeeping.service"
|
||||
state: "started"
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
scope: "user"
|
||||
@@ -12,6 +12,7 @@
|
||||
- "vikunja"
|
||||
- "affine"
|
||||
- "nextcloud"
|
||||
- "ezbookkeeping"
|
||||
|
||||
- name: Create postgresql directory
|
||||
ansible.builtin.file:
|
||||
|
||||
Reference in New Issue
Block a user