Finalisation du code
This commit is contained in:
@@ -2,26 +2,24 @@
|
|||||||
|
|
||||||
{% if grains['kernel'] == 'Linux' %}
|
{% if grains['kernel'] == 'Linux' %}
|
||||||
|
|
||||||
Repository pour Visual Studio Code:
|
VisualStudioCode_Repository:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
{% if grains['os_family'] == 'RedHat' %}
|
{% if grains['os_family'] == 'RedHat' %}
|
||||||
- humanname: Atom Editor
|
- humanname: Repository for Microsoft Visual Studio Code Editor
|
||||||
- baseurl: https://packagecloud.io/AtomEditor/atom/el/7/$basearch
|
- baseurl: 'https://packages.microsoft.com/yumrepos/vscode'
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
- gpgcheck: 0
|
- gpgcheck: 0
|
||||||
- repo_gpgcheck: 1
|
- repo_gpgcheck: 1
|
||||||
- gpgkey: https://packagecloud.io/AtomEditor/atom/gpgkey
|
- gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
||||||
{% elif grains['os_family'] == 'Debian' %}
|
{% elif grains['os_family'] == 'Debian' %}
|
||||||
- name: deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main
|
- name: 'deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main'
|
||||||
- humanname: Atom Repository
|
- humanname: Microsoft Visual Studio Code Repository
|
||||||
- file: /etc/apt/sources.list.d/atom.list
|
- file: /etc/apt/sources.list.d/MS_VisualStudioCode.list
|
||||||
- key_url: https://packagecloud.io/AtomEditor/atom/gpgkey
|
- key_url: https://packages.microsoft.com/keys/microsoft.asc
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
Installons Atom:
|
code:
|
||||||
pkg.installed:
|
pkg.installed
|
||||||
pkgs:
|
|
||||||
- atom
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in New Issue
Block a user