paulbsd-salt/states/pycharm/install.sls

35 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2021-05-21 18:01:34 +02:00
---
{%- from "pycharm/map.jinja" import pycharm with context %}
pycharm-archive-extract:
archive.extracted:
2021-11-14 13:38:37 +01:00
- name: {{ pycharm.release_dir }}
2021-05-21 18:01:34 +02:00
- source: {{ pycharm.mirror }}/pycharm-community-{{ pycharm.version }}.tar.gz
- source_hash: {{ pycharm.mirror }}/pycharm-community-{{ pycharm.version }}.tar.gz.sha256
- archive_format: tar
2022-10-01 20:12:43 +02:00
- enforce_toplevel: false
2021-05-21 18:01:34 +02:00
- if_missing: {{ pycharm.release_dir }}/pycharm-community-{{ pycharm.version }}
- watch:
- file: pycharm-link
- file: pycharm-shortcut
pycharm-link:
file.symlink:
- name: {{ pycharm.install_dir }}/pycharm
- target: {{ pycharm.release_dir }}/pycharm-community-{{ pycharm.version }}
- force: true
pycharm-shortcut:
file.managed:
- name: /usr/share/applications/jetbrains-pycharm-ce.desktop
2023-03-11 10:08:26 +01:00
- source: salt://pycharm/templates/jetbrains-pycharm-ce.desktop.j2
2021-05-21 18:01:34 +02:00
- template: jinja
- user: root
- group: root
- mode: 644
2021-12-29 15:43:58 +01:00
pycharm-cleanup:
software.cleanup:
- name: pycharm-community
- path: {{ pycharm.release_dir }}
- version: "{{ pycharm.version }}"