updated sublimetext state

This commit is contained in:
Paul 2021-07-03 16:02:23 +02:00
parent b4cb5d3b1b
commit 8695bcc5e2
2 changed files with 17 additions and 8 deletions

View File

@ -1,6 +1,7 @@
--- ---
sublimetext: sublimetext:
fetch_url: https://paulbsd-pub.s3.fr-par.scw.cloud/sublimetext fetch_url: https://paulbsd-pub.s3.fr-par.scw.cloud/sublimetext
archive_name: sublime_text_build_4107_x64.tar.bz2 archive_name: sublime_text_build_4107_x64_activated.tar.bz2
install_dir: /opt install_dir: /opt
install_subdir: sublime_text install_subdir: sublime_text
keys_file: sublime_text_keys.txt

View File

@ -1,25 +1,29 @@
--- ---
{%- from "sublimetext/map.jinja" import sublimetext with context %} {%- from "sublimetext/map.jinja" import sublimetext with context %}
sublime-text-extract-archive: sublimetext-extract-archive:
archive.extracted: archive.extracted:
- name: {{ sublimetext.install_dir }} - name: {{ sublimetext.install_dir }}
- source: {{ sublimetext.fetch_url }}/{{ sublimetext.archive_name }} - source: {{ sublimetext.fetch_url }}/{{ sublimetext.archive_name }}
- skip_verify: true - skip_verify: true
- options: xj
- list_options: bzcat
- user: root - user: root
- group: root - group: root
- mode: 0755 - mode: 0755
- if_missing: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }} - if_missing: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}
sublime-text-licence-key: sublimetext-licence-key:
file.managed: file.managed:
- name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/sublime_text_keys.txt - name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/{{ sublimetext.keys_file }}
- source: salt://sublimetext/sublime_text_keys.txt.j2 - source: salt://sublimetext/{{ sublimetext.keys_file }}
- template: jinja - template: jinja
- user: root - user: root
- group: root - group: root
- mode: 0644 - mode: 0644
- require:
- archive: sublimetext-extract-archive
sublime-text-desktop-entry: sublimetext-desktop-entry:
file.managed: file.managed:
- name: /usr/share/applications/sublime_text.desktop - name: /usr/share/applications/sublime_text.desktop
- source: salt://sublimetext/sublime_text.desktop.j2 - source: salt://sublimetext/sublime_text.desktop.j2
@ -27,11 +31,15 @@ sublime-text-desktop-entry:
- user: root - user: root
- group: root - group: root
- mode: 0644 - mode: 0644
- require:
- archive: sublimetext-extract-archive
sublime-text-symlink: sublimetext-symlink:
file.symlink: file.symlink:
- name: /usr/bin/sublime_text - name: /usr/bin/sublime_text
- target: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/sublime_text - target: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/sublime_text
- user: root - user: root
- group: root - group: root
- mode: 0755 - mode: 0755
- require:
- archive: sublimetext-extract-archive