Created
September 21, 2023 18:23
-
-
Save thebluesnevrdie/8758785b564e6097bc8f6bb3dc0d2ee0 to your computer and use it in GitHub Desktop.
Install JetBrains PyCharm Community Edition for Linux using Saltproject (Salt)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8; mode:yaml; tab-width:2; indent-tabs-mode:nil; -*- | |
# vim: syntax=yaml ts=2 sw=2 sts=2 et si ai | |
# See: https://www.jetbrains.com/pycharm/download/other.html | |
{% set version = "2023.2.1" %} | |
{% set filename = "pycharm-community-" + version + ".tar.gz" %} | |
{% set dl_link = "https://download.jetbrains.com/python/" + filename %} | |
{% set hash_link = dl_link + ".sha256" %} | |
Extract PyCharm Archive: | |
archive.extracted: | |
- name: /opt | |
- source: {{ dl_link }} | |
- source_hash: {{ hash_link }} | |
- keep_source: False | |
- enforce_toplevel: False | |
- if_missing: /opt/pycharm-community-{{ version }} | |
Ensure PyCharm Desktop Entry: | |
file.managed: | |
- name: /usr/share/applications/pycharm.desktop | |
- contents: | | |
[Desktop Entry] | |
Name=PyCharm | |
Exec=/opt/pycharm-community-{{ version }}/bin/pycharm.sh | |
Terminal=false | |
Type=Application | |
Icon=pycharm | |
Ensure PyCharm Icon Link: | |
file.symlink: | |
- name: /usr/share/icons/hicolor/128x128/apps/pycharm.png | |
- target: /opt/pycharm-community-{{ version }}/bin/pycharm.png | |
- require: | |
- Extract PyCharm Archive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment