25 lines
808 B
Plaintext
25 lines
808 B
Plaintext
# Installation du logiciel Visual Studio Code de Microsoft
|
|
|
|
{% if grains['kernel'] == 'Linux' %}
|
|
|
|
VisualStudioCode_Repository:
|
|
pkgrepo.managed:
|
|
{% if grains['os_family'] == 'RedHat' %}
|
|
- humanname: Repository for Microsoft Visual Studio Code Editor
|
|
- baseurl: 'https://packages.microsoft.com/yumrepos/vscode'
|
|
- enabled: 1
|
|
- gpgcheck: 0
|
|
- repo_gpgcheck: 1
|
|
- gpgkey: https://packages.microsoft.com/keys/microsoft.asc
|
|
{% elif grains['os_family'] == 'Debian' %}
|
|
- name: 'deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main'
|
|
- humanname: Microsoft Visual Studio Code Repository
|
|
- file: /etc/apt/sources.list.d/MS_VisualStudioCode.list
|
|
- key_url: https://packages.microsoft.com/keys/microsoft.asc
|
|
|
|
{% endif %}
|
|
|
|
code:
|
|
pkg.installed
|
|
|
|
{% endif %} |