From 9e5bc2a5acdfd606d6ccaed09f550fa5465d3877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Fri, 16 Nov 2018 19:29:39 +0000 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20du=20fichier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- softwares/VisualStudioCode.sls | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 softwares/VisualStudioCode.sls diff --git a/softwares/VisualStudioCode.sls b/softwares/VisualStudioCode.sls new file mode 100644 index 0000000..6426f61 --- /dev/null +++ b/softwares/VisualStudioCode.sls @@ -0,0 +1,27 @@ +# Installation du logiciel Visual Studio Code de Microsoft + +{% if grains['kernel'] == 'Linux' %} + +Repository pour Visual Studio Code: + pkgrepo.managed: + {% if grains['os_family'] == 'RedHat' %} + - humanname: Atom Editor + - baseurl: https://packagecloud.io/AtomEditor/atom/el/7/$basearch + - enabled: 1 + - gpgcheck: 0 + - repo_gpgcheck: 1 + - gpgkey: https://packagecloud.io/AtomEditor/atom/gpgkey + {% elif grains['os_family'] == 'Debian' %} + - name: deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main + - humanname: Atom Repository + - file: /etc/apt/sources.list.d/atom.list + - key_url: https://packagecloud.io/AtomEditor/atom/gpgkey + + {% endif %} + +Installons Atom: + pkg.installed: + pkgs: + - atom + +{% endif %} \ No newline at end of file