From ba9a35ff61988a5d56f264331788d19140637139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Fri, 16 Nov 2018 20:22:40 +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/VirtualBox.sls | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 softwares/VirtualBox.sls diff --git a/softwares/VirtualBox.sls b/softwares/VirtualBox.sls new file mode 100644 index 0000000..4bdeed0 --- /dev/null +++ b/softwares/VirtualBox.sls @@ -0,0 +1,25 @@ +# Installation du logiciel ATOM + +{% if grains['kernel'] == 'Linux' %} + +virtualbox_repository: + pkgrepo.managed: + {% if grains['os_family'] == 'RedHat' %} + - humanname: Atom Repository for $releasever - $basearch + - 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 %} + +atom: + pkg.installed + +{% endif %} \ No newline at end of file