paulbsd-salt/states/nextcloud_desktop/init.sls

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
2020-09-12 17:12:40 +02:00
{%- from "nextcloud_desktop/map.jinja" import nextcloud_desktop with context %}
2020-09-12 17:14:57 +02:00
nextcloud-desktop-appimage:
2020-07-10 00:58:55 +02:00
file.managed:
2020-09-12 17:17:06 +02:00
- name: {{ nextcloud_desktop.dest_path }}-{{ nextcloud_desktop.version }}
2020-09-12 17:12:40 +02:00
- source: {{ nextcloud_desktop.url }}/Nextcloud-{{ nextcloud_desktop.version }}-x86_64.AppImage
2020-09-12 17:41:35 +02:00
- skip_verify: true
2020-07-10 00:58:55 +02:00
- user: root
- group: root
- mode: 755
2020-09-12 17:14:57 +02:00
- if_missing: {{ nextcloud_desktop.dest_path }}-{{ nextcloud_desktop.version }}
2020-09-12 17:12:40 +02:00
2020-09-12 17:14:57 +02:00
nextcloud-desktop-install-link:
2020-09-12 17:12:40 +02:00
file.symlink:
- name: {{ nextcloud_desktop.dest_path }}
2020-09-12 17:16:25 +02:00
- target: {{ nextcloud_desktop.dest_path }}-{{ nextcloud_desktop.version }}
2020-09-12 17:41:35 +02:00
- force: true
2020-09-12 17:14:57 +02:00
- watch:
- file: nextcloud-desktop-appimage
2020-07-10 00:58:55 +02:00
2020-09-12 17:12:40 +02:00
nextcloud-desktop-icon:
2020-07-10 00:58:55 +02:00
file.managed:
- name: /usr/share/icons/nextcloud.png
- source: salt://nextcloud_desktop/nextcloud.png
- user: root
- group: root
- mode: 644
2020-09-12 17:12:40 +02:00
nextcloud-desktop-icon-entry:
2020-07-10 00:58:55 +02:00
file.managed:
- name: /usr/share/applications/nextcloud.desktop
- source: salt://nextcloud_desktop/nextcloud.desktop
- user: root
- group: root
2021-08-19 21:15:24 +02:00
- mode: 644