updated sublimetext state
This commit is contained in:
parent
69c41150a4
commit
23ca008ca0
@ -1,8 +1,9 @@
|
|||||||
---
|
---
|
||||||
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_activated.tar.bz2
|
archive_name: sublime_text_build_%s_x64_activated.tar.bz2
|
||||||
install_dir: /opt
|
install_dir: /opt
|
||||||
install_subdir: sublime_text
|
install_subdir: sublime_text
|
||||||
|
version: 4107
|
||||||
keys_file: sublime_text_keys.txt
|
keys_file: sublime_text_keys.txt
|
||||||
iconsize: 48x48
|
iconsize: 48x48
|
||||||
|
@ -1,45 +1,4 @@
|
|||||||
---
|
---
|
||||||
{%- from "sublimetext/map.jinja" import sublimetext with context %}
|
{%- from "sublimetext/map.jinja" import sublimetext with context %}
|
||||||
sublimetext-extract-archive:
|
include:
|
||||||
archive.extracted:
|
- .install
|
||||||
- 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 }}
|
|
||||||
|
|
||||||
sublimetext-licence-key:
|
|
||||||
file.managed:
|
|
||||||
- name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/{{ sublimetext.keys_file }}
|
|
||||||
- source: salt://sublimetext/{{ sublimetext.keys_file }}.j2
|
|
||||||
- template: jinja
|
|
||||||
- user: root
|
|
||||||
- group: root
|
|
||||||
- mode: 0644
|
|
||||||
- require:
|
|
||||||
- archive: sublimetext-extract-archive
|
|
||||||
|
|
||||||
sublimetext-desktop-entry:
|
|
||||||
file.managed:
|
|
||||||
- name: /usr/share/applications/sublime_text.desktop
|
|
||||||
- source: salt://sublimetext/sublime_text.desktop.j2
|
|
||||||
- template: jinja
|
|
||||||
- user: root
|
|
||||||
- group: root
|
|
||||||
- mode: 0644
|
|
||||||
- require:
|
|
||||||
- archive: sublimetext-extract-archive
|
|
||||||
|
|
||||||
sublimetext-symlink:
|
|
||||||
file.symlink:
|
|
||||||
- name: /usr/bin/sublime_text
|
|
||||||
- target: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/sublime_text
|
|
||||||
- user: root
|
|
||||||
- group: root
|
|
||||||
- mode: 0755
|
|
||||||
- require:
|
|
||||||
- archive: sublimetext-extract-archive
|
|
57
states/sublimetext/install.sls
Normal file
57
states/sublimetext/install.sls
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
---
|
||||||
|
{%- from "sublimetext/map.jinja" import sublimetext with context %}
|
||||||
|
sublimetext-extract-archive:
|
||||||
|
archive.extracted:
|
||||||
|
- name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}_{{ sublimetext.version }}
|
||||||
|
- source: {{ sublimetext.fetch_url }}/{{ sublimetext.archive_name|format(sublimetext.version) }}
|
||||||
|
- skip_verify: true
|
||||||
|
- options: xj --transform 's/^sublime_text//g'
|
||||||
|
- enforce_toplevel: false
|
||||||
|
- list_options: bzcat
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 0755
|
||||||
|
- if_missing: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}_{{ sublimetext.version }}
|
||||||
|
|
||||||
|
sublimetext-install-symlink:
|
||||||
|
file.symlink:
|
||||||
|
- name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}
|
||||||
|
- target: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}_{{ sublimetext.version }}
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 0755
|
||||||
|
- require:
|
||||||
|
- archive: sublimetext-extract-archive
|
||||||
|
|
||||||
|
sublimetext-binary-symlink:
|
||||||
|
file.symlink:
|
||||||
|
- name: /usr/bin/sublime_text
|
||||||
|
- target: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}/sublime_text
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 0755
|
||||||
|
- require:
|
||||||
|
- archive: sublimetext-extract-archive
|
||||||
|
|
||||||
|
sublimetext-licence-key:
|
||||||
|
file.managed:
|
||||||
|
- name: {{ sublimetext.install_dir }}/{{ sublimetext.install_subdir }}_{{ sublimetext.version }}/{{ sublimetext.keys_file }}
|
||||||
|
- source: salt://sublimetext/{{ sublimetext.keys_file }}.j2
|
||||||
|
- template: jinja
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 0644
|
||||||
|
- require:
|
||||||
|
- archive: sublimetext-extract-archive
|
||||||
|
|
||||||
|
sublimetext-desktop-entry:
|
||||||
|
file.managed:
|
||||||
|
- name: /usr/share/applications/sublime_text.desktop
|
||||||
|
- source: salt://sublimetext/sublime_text.desktop.j2
|
||||||
|
- template: jinja
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 0644
|
||||||
|
- require:
|
||||||
|
- archive: sublimetext-extract-archive
|
||||||
|
|
Loading…
Reference in New Issue
Block a user