construction du fichier
This commit is contained in:
22
softwares/SaltRepo.sls
Normal file
22
softwares/SaltRepo.sls
Normal file
@@ -0,0 +1,22 @@
|
||||
# Installation du logiciel ATOM
|
||||
|
||||
{% if grains['kernel'] == 'Linux' %}
|
||||
{% if grains['os_family'] == 'Debian' %}
|
||||
saltstack repository:
|
||||
pkgrepo.managed:
|
||||
{% if grains['os'] == 'Debian' %}
|
||||
- name: 'deb http://repo.saltstack.com/apt/debian/9/amd64/latest stretch main'
|
||||
- key_url: 'https://repo.saltstack.com/apt/debian/9/amd64/latest/SALTSTACK-GPG-KEY.pub'
|
||||
{% if grains['os'] == 'Ubuntu' %}
|
||||
- key_url: 'https://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest/SALTSTACK-GPG-KEY.pub'
|
||||
- name: 'deb http://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest bionic main'
|
||||
{% endif %}
|
||||
- humanname: SaltStack Repository
|
||||
- file: /etc/apt/sources.list.d/saltstack.list
|
||||
|
||||
{% endif %}
|
||||
|
||||
salt-minion:
|
||||
pkg.installed
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user