From d95b03c4f837e9e4c44624b45bae44724a23ed31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Sat, 17 Nov 2018 20:39:52 +0100 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- softwares/bareosclient.sls | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 softwares/bareosclient.sls diff --git a/softwares/bareosclient.sls b/softwares/bareosclient.sls new file mode 100644 index 0000000..85f1533 --- /dev/null +++ b/softwares/bareosclient.sls @@ -0,0 +1,26 @@ +# Installation du client bareos + +{% 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 http://download.bareos.org/bareos/release/latest/Debian_9.0/ /' + - humanname: Repository Bareos + - file: /etc/apt/sources.list.d/bareos.list + - key_url: 'http://download.bareos.org/bareos/release/latest/Debian_9.0/Release.key' + + {% endif %} + +bareos-fd: + pkg.installed + +{% endif %} \ No newline at end of file