Files
states/softwares/atom.sls
Iwan Clément 0a8294562d skip
2018-11-17 11:34:08 +01:00

26 lines
759 B
Plaintext

# Installation du logiciel ATOM
{% if grains['kernel'] == 'Linux' %}
atom_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'
- skip_if_unavailable: True
{% 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 %}