Création pour Debian et RedHat family
This commit is contained in:
27
softwares/atom.sls
Normal file
27
softwares/atom.sls
Normal file
@@ -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 %}
|
||||||
Reference in New Issue
Block a user