Merge pull request '0.2.1 - Fixed backend and webgate installtion' (#5) from 1.2.1 into main

Reviewed-on: #5
Reviewed-by: meaz <meaz@no-reply@disroot.org>
This commit is contained in:
muppeth 2024-01-14 20:43:09 +00:00
commit 6c934594ed
4 changed files with 28 additions and 5 deletions

View File

@ -11,10 +11,18 @@ lacre_homedir: '/var/lib/gpg-lacre'
lacre_backend_deploy: 'true'
lacre_webgate_deploy: 'true'
lacre_apt:
- 'python3-m2crypto'
- 'git'
- 'gnupg'
- 'sudo'
- 'python3-pip'
- 'python3-dev'
- 'libssl-dev'
- 'swig'
lacre_pip_pkgs:
- 'setuptools'
- 'wheel'
- 'pip'
- 'pyyaml'
lacre_daemon: 'false'
lacre_set_content_filter: 'true'
lacre_content_filter: 'gpg-mailgate'
@ -42,7 +50,7 @@ lacre_logfile: '/etc/gpg-lacre-logging.conf'
lacre_max_data_bytes: '33554432'
lacre_log_headers: 'no'
lacre_relay: '127.0.0.1'
lacre_port: '10028'
lacre_relay_port: '10028'
lacre_enc_port: '25'
lacre_starttls: 'no'

View File

@ -27,6 +27,16 @@
owner: '{{ lacre_username }}'
group: '{{ lacre_group }}'
mode: '700'
- name: '[Install] - Create a symbolic link to python binary'
file:
src: '/usr/bin/python3.9'
dest: '/usr/bin/python'
state: 'link'
- name: '[INSTALL] - Install lacre backend requirenments'
pip:
requirements: "{{ lacre_app_dir }}/requirements.txt"
- name: '[Install] - Link GnuPG Lacre to global python modules'
file:

View File

@ -10,8 +10,13 @@
dest: '{{ lacre_webgate_dir }}'
force: 'yes'
version: '{{ lacre_webgate_version }}'
become: 'yes'
become_user: '{{ lacre_webgate_user }}'
# become: 'yes'
#become_user: '{{ lacre_webgate_user }}'
- name: '[Lacre-webgate] - Make sure webgate is owned by lacre user'
file:
path: '{{ lacre_webgate_dir }}'
owner: '{{ lacre_username }}'
group: '{{ lacre_group }}'
- name: '[Lacre-webgate] - Check if db schema is loaded'
shell:

View File

@ -69,7 +69,7 @@ log_headers = {{ lacre_log_headers }}no
# gpg-mailgate will submit email to this relay after it is done processing
# unless you alter the default Postfix configuration, you won't have to modify this
host = {{ lacre_relay }}
port = {{ lacre_port }}
port = {{ lacre_relay_port }}
# This is the default port of postfix. It is used to send some
# mails through the GPG-Mailgate so they are encrypted
enc_port = {{ lacre_enc_port }}