Création du fichier

This commit is contained in:
Iwan Clément
2018-11-16 20:22:40 +00:00
parent f7b1075d8b
commit ba9a35ff61

25
softwares/VirtualBox.sls Normal file
View File

@@ -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 %}