{% from "owncloud/map.jinja" import owncloud with context %}

include:
  - owncloud.server-repo

install-owncloud-server:
  pkg.latest:
    - name: {{ owncloud.pkg }}
    - refresh: True
    
autoconfig-owncloud-server:
  file.managed:
    - template: jinja
    - name: {{ owncloud.base_dir }}/config/autoconfig.php
    - source: salt://owncloud/files/autoconfig.php.jinja
    - user: www-data
    - group: www-data

{% from "owncloud/map.jinja" import owncloud with context %}

include:
  - owncloud.server-repo

install-owncloud-server:
  pkg.latest:
    - name: {{ owncloud.pkg }}
    - refresh: True
    
autoconfig-owncloud-server:
  file.managed:
    - template: jinja
    - name: {{ owncloud.base_dir }}/config/autoconfig.php
    - source: salt://owncloud/files/autoconfig.php.jinja
    - user: {{ owncloud.webserver_user }}
    - group: {{ owncloud.webserver_group }}

Make autoconfig.php user and group configurable
Make autoconfig.php user and group configurable

saltstack-formulas/owncloud-formula,irtnog/owncloud-formula