updated rainloop state

This commit is contained in:
Paul 2021-11-27 13:25:44 +01:00
parent de7b753440
commit 47d87dbce9
4 changed files with 27 additions and 3 deletions

View File

@ -1 +1,19 @@
---
---
{%- from "rainloop/map.jinja" import rainloop with context %}
rainloop-data-dir:
file.directory:
- name: {{ rainloop.data_dir }}
- user: {{ rainloop.user }}
- group: {{ rainloop.group }}
rainloop-config:
file.managed:
- name: {{ rainloop.install_dir }}/rainloop/include.php
- source: salt://rainloop/templates/include.php.j2
- user: {{ rainloop.user }}
- group: {{ rainloop.group }}
- template: jinja
- context:
config_includes:
- '$sCustomDataPath = "{{ rainloop.data_dir }}";'
- '$sCustomConfiguration = "";'

View File

@ -5,6 +5,7 @@ rainloop:
release_dir: /usr/local/apps/releases
mirror: https://github.com/RainLoop/rainloop-webmail/releases/download
version: 1.14.0
data_dir: /var/lib/rainloop
user: www-data
group: www-data
config: {}

View File

@ -1,5 +1,5 @@
---
include:
#- php
- php
- .install
#- .config
- .config

View File

@ -0,0 +1,5 @@
<?php
{%- for line in config_includes %}
{{ line }}
{%- endfor %}
?>