Update to 2022-01-25 15:00

This commit is contained in:
Daniel Berteaud
2022-01-25 15:00:05 +01:00
parent 44ee2cb941
commit 1454d0ec5c
26 changed files with 337 additions and 56 deletions

View File

@@ -11,7 +11,7 @@
# MaxUsers = "9"
# Mode = "subscription"
# etc...
seafile_version: "{{ seafile_license is defined | ternary('8.0.17','9.0.2') }}"
seafile_version: "{{ seafile_license is defined | ternary('9.0.4','9.0.2') }}"
# Archive URL and sha1 are only used for the community version
seafile_archive_url: https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_{{ seafile_version }}_x86-64.tar.gz
@@ -31,6 +31,10 @@ seafile_db_seahub: seahub
# Set to none to disable memcached
seafile_memcached_server: 127.0.0.1:11211
# Elasticsearch is only used with pro edition
seafile_es_server: localhost
seafile_es_port: 9200
# Account under which services will run
seafile_user: seafile
seafile_group: "{{ seafile_user }}"
@@ -61,7 +65,7 @@ seafile_admin_pass: seafile
# LDAP integration
seafile_ldap_auth: "{{ (ad_auth | default(False) or ldap_auth | default(False)) | ternary(True,False) }}"
seafile_ldap_uri: "{{ ad_auth | default(False) | ternary('ldaps://' + ad_realm | default(samba_realm) | default(ansible_domain) | lower,ldap_uri | default('ldap://ldap' ~ ansible_domain) | regex_replace('^ldap://(.*)','ldaps://\\1')) }}"
seafile_ldap_uri: "{{ ad_auth | default(False) | ternary('ldaps://' + ad_realm | default(samba_realm) | default(ansible_domain) | lower,ldap_uri | default('ldap://ldap.' ~ ansible_domain) | regex_replace('^ldap://(.*)','ldaps://\\1')) }}"
seafile_ldap_base: "{{ ad_auth | default(False) | ternary('DC=' + ad_realm | default(samba_realm) | default(ansible_domain) | regex_replace('\\.',',DC='), 'ou=Users,' + ldap_base) }}"
# seafile_ldap_bind_dn:
# Note that seafile_ldap_bind_pass should not contain special caracter, as it might break the parser and

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8e6f50e8470f0c0835b4c4c6507242929f496c6df68ab297bb184a1eed0ce0c4
size 125213881

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c50ed3b921be0b4da5b6770d91c3e695c580f9ac3e58a1716bacfd8ba3a9353
size 102245982

View File

@@ -7,3 +7,9 @@ dependencies:
when: seafile_license is defined and seafile_scan_av == True
- role: mysql_server
when: seafile_db_server in ['127.0.0.1', 'localhost']
- role: elasticsearch
vars:
es_version: 7.16.3
when:
- seafile_license is defined
- seafile_es_server in ['127.0.0.1', 'localhost']

View File

@@ -19,6 +19,9 @@ enabled = true
enabled = true
interval = 10m
index_office_pdf = true
external_es_server = true
es_host = {{ seafile_es_server }}
es_port = {{ seafile_es_port }}
[OFFICE CONVERTER]
enabled = true

View File

@@ -1,6 +1,6 @@
[Unit]
Description=Seafile
After=network.target mariadb.service
After=network.target mariadb.service elasticsearch.service
[Service]
Type=forking