0.2.1 - Fixed backend and webgate installtion #5
4 changed files with 28 additions and 5 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,16 @@
|
||||||
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:
|
||||||
src: '{{ lacre_app_dir }}/GnuPG'
|
src: '{{ lacre_app_dir }}/GnuPG'
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue