From bbed9a28d8f45352d340803c38b2e2d0b34eaa73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Fri, 16 Nov 2018 19:24:09 +0000 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20pour=20Debian=20et=20RedHat=20f?= =?UTF-8?q?amily?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- softwares/atom.sls | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 softwares/atom.sls diff --git a/softwares/atom.sls b/softwares/atom.sls new file mode 100644 index 0000000..00144ee --- /dev/null +++ b/softwares/atom.sls @@ -0,0 +1,27 @@ +# Installation du logiciel ATOM + +{% if grains['kernel'] == 'Linux' %} + +atom: + 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