updated sublimetext state
This commit is contained in:
parent
b4cb5d3b1b
commit
8695bcc5e2
@ -1,6 +1,7 @@
|
||||
---
|
||||
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_subdir: sublime_text
|
||||
keys_file: sublime_text_keys.txt
|
||||
|
@ -1,25 +1,29 @@
|
||||
---
|
||||
{%- from "sublimetext/map.jinja" import sublimetext with context %}
|
||||
sublime-text-extract-archive:
|
||||
sublimetext-extract-archive:
|
||||
archive.extracted:
|
||||
- name: {{ sublimetext.install_dir }}
|
||||
- source: {{ sublimetext.fetch_url }}/{{ sublimetext.archive_name }}
|
||||
- skip_verify: true
|
||||
- options: xj
|
||||
- list_options: bzcat
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 0755
|
||||
- if_missing: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}
|
||||
|
||||
sublime-text-licence-key:
|
||||
sublimetext-licence-key:
|
||||
file.managed:
|
||||
- name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/sublime_text_keys.txt
|
||||
- source: salt://sublimetext/sublime_text_keys.txt.j2
|
||||
- name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/{{ sublimetext.keys_file }}
|
||||
- source: salt://sublimetext/{{ sublimetext.keys_file }}
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 0644
|
||||
- require:
|
||||
- archive: sublimetext-extract-archive
|
||||
|
||||
sublime-text-desktop-entry:
|
||||
sublimetext-desktop-entry:
|
||||
file.managed:
|
||||
- name: /usr/share/applications/sublime_text.desktop
|
||||
- source: salt://sublimetext/sublime_text.desktop.j2
|
||||
@ -27,11 +31,15 @@ sublime-text-desktop-entry:
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 0644
|
||||
- require:
|
||||
- archive: sublimetext-extract-archive
|
||||
|
||||
sublime-text-symlink:
|
||||
sublimetext-symlink:
|
||||
file.symlink:
|
||||
- name: /usr/bin/sublime_text
|
||||
- target: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/sublime_text
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 0755
|
||||
- mode: 0755
|
||||
- require:
|
||||
- archive: sublimetext-extract-archive
|
Loading…
Reference in New Issue
Block a user