diff options
author | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:23:43 -0500 |
---|---|---|
committer | Stonewall Jackson <stonewall@sacredheartsc.com> | 2023-02-04 01:52:13 -0500 |
commit | 0261e875679f1bf63c8d689da7fc7e014597885d (patch) | |
tree | 3f19cd74a0c1070944f75437f30b098d6ef2ffcb /roles/photostructure/vars | |
download | selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.tar.gz selfhosted-0261e875679f1bf63c8d689da7fc7e014597885d.zip |
initial commit
Diffstat (limited to 'roles/photostructure/vars')
-rw-r--r-- | roles/photostructure/vars/main.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/roles/photostructure/vars/main.yml b/roles/photostructure/vars/main.yml new file mode 100644 index 0000000..d05ed42 --- /dev/null +++ b/roles/photostructure/vars/main.yml @@ -0,0 +1,46 @@ +photostructure_packages: + - nodejs + - ffmpeg + - libjpeg-turbo-utils + - libheif + - python3-devel + - git + - perl + +photostructure_repo: https://github.com/photostructure/photostructure-for-servers.git +photostructure_home: /opt/photostructure +photostructure_library: '{{ photostructure_home }}/library' +photostructure_keytab: /var/lib/gssproxy/clients/{{ photostructure_user }}.keytab +photostructure_install_dir: '{{ photostructure_home }}/photostructure-for-servers' + +photostructure_update_script_path: /usr/local/sbin/photostructure-update.sh +photostructure_update_on_calendar: weekly + +photostructure_apache_config: | + ProxyPass / http://127.0.0.1:{{ photostructure_port }}/ + ProxyPassReverse / http://127.0.0.1:{{ photostructure_port }}/ + ProxyTimeout 3600 + {{ apache_proxy_config }} + + <Location /> + AuthName "FreeIPA Single Sign-On" + <If "{% for cidr in photostructure_kerberized_cidrs %}-R '{{ cidr }}'{% if not loop.last %} || {% endif %}{% endfor %}"> + AuthType GSSAPI + GssapiLocalName On + {{ apache_gssapi_session_config }} + </If> + <Else> + AuthType Basic + AuthBasicProvider ldap + </Else> + {{ apache_ldap_config }} + Require ldap-attribute memberof=cn={{ photostructure_access_group }},{{ freeipa_group_basedn }} + </Location> + +photostructure_archive_shell: >- + systemctl stop photostructure; + TIMESTAMP=$(date +%Y%m%d%H%M%S); + tar cf "photostructure-${TIMESTAMP}.tar" + --transform "s|^\.|photostructure-${TIMESTAMP}|" + -C {{ photostructure_library | quote }} . ; + systemctl start photostructure |