0.2.1 - Fixed backend and webgate installtion #5

Merged
muppeth merged 2 commits from 1.2.1 into main 2024-01-14 21:43:10 +01:00
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_backend_deploy: 'true'
lacre_webgate_deploy: 'true' lacre_webgate_deploy: 'true'
lacre_apt: lacre_apt:
- 'python3-m2crypto'
- 'git' - 'git'
- 'gnupg' - 'gnupg'
- 'sudo' - 'sudo'
- 'python3-pip'
- 'python3-dev'
- 'libssl-dev'
- 'swig'
lacre_pip_pkgs:
- 'setuptools'
- 'wheel'
- 'pip'
- 'pyyaml'
lacre_daemon: 'false' lacre_daemon: 'false'
lacre_set_content_filter: 'true' lacre_set_content_filter: 'true'
lacre_content_filter: 'gpg-mailgate' lacre_content_filter: 'gpg-mailgate'
@ -42,7 +50,7 @@ lacre_logfile: '/etc/gpg-lacre-logging.conf'
lacre_max_data_bytes: '33554432' lacre_max_data_bytes: '33554432'
lacre_log_headers: 'no' lacre_log_headers: 'no'
lacre_relay: '127.0.0.1' lacre_relay: '127.0.0.1'
lacre_port: '10028' lacre_relay_port: '10028'
lacre_enc_port: '25' lacre_enc_port: '25'
lacre_starttls: 'no' lacre_starttls: 'no'

View File

@ -27,6 +27,16 @@
owner: '{{ lacre_username }}' owner: '{{ lacre_username }}'
group: '{{ lacre_group }}' group: '{{ lacre_group }}'
mode: '700' 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' - name: '[Install] - Link GnuPG Lacre to global python modules'
file: file:

View File

@ -10,8 +10,13 @@
dest: '{{ lacre_webgate_dir }}' dest: '{{ lacre_webgate_dir }}'
force: 'yes' force: 'yes'
version: '{{ lacre_webgate_version }}' version: '{{ lacre_webgate_version }}'
become: 'yes' # become: 'yes'
become_user: '{{ lacre_webgate_user }}' #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' - name: '[Lacre-webgate] - Check if db schema is loaded'
shell: 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 # 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 # unless you alter the default Postfix configuration, you won't have to modify this
host = {{ lacre_relay }} host = {{ lacre_relay }}
port = {{ lacre_port }} port = {{ lacre_relay_port }}
# This is the default port of postfix. It is used to send some # This is the default port of postfix. It is used to send some
# mails through the GPG-Mailgate so they are encrypted # mails through the GPG-Mailgate so they are encrypted
enc_port = {{ lacre_enc_port }} enc_port = {{ lacre_enc_port }}