paulbsd-salt/states/nextcloud_desktop/init.sls

27 lines
1017 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- if not salt['file.file_exists']( salt['pillar.get']('nextcloud_desktop:dest_path') ) or not salt['file.check_hash']( salt['pillar.get']('nextcloud_desktop:dest_path'), salt['pillar.get']('nextcloud_desktop:file_sha256sum') ) %}
nextcloud-install:
file.managed:
- name: {{ salt['pillar.get']('nextcloud_desktop:dest_path') }}
- source: {{ salt['pillar.get']('nextcloud_desktop:url') }}/Nextcloud-{{ salt['pillar.get']('nextcloud_desktop:version') }}-x86_64.AppImage
- source_hash: sha256={{ salt['pillar.get']('nextcloud_desktop:file_sha256sum') }}
- user: root
- group: root
- mode: 755
{%- endif %}
nextcloud-icon:
file.managed:
- name: /usr/share/icons/nextcloud.png
- source: salt://nextcloud_desktop/nextcloud.png
- user: root
- group: root
- mode: 644
nextcloud-desktop-entry:
file.managed:
- name: /usr/share/applications/nextcloud.desktop
- source: salt://nextcloud_desktop/nextcloud.desktop
- user: root
- group: root
- mode: 644