From 6f37783babf0364b0ce6f8c286ac46bcf3376ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Sat, 17 Nov 2018 15:56:40 +0100 Subject: [PATCH] variabilisation --- softwares/rpmfusion.sls | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/softwares/rpmfusion.sls b/softwares/rpmfusion.sls index 18787ca..0c86be5 100644 --- a/softwares/rpmfusion.sls +++ b/softwares/rpmfusion.sls @@ -1,8 +1,13 @@ +# Installation des repository RPMFUSION + {% if grains['os'] == 'Fedora' %} {% set FEDORAVER=grains['osmajorrelease'] %} -Installons les repos RPM Fusio : +{% set URLROOT='https://download1.rpmfusion.org'%} +{% set URLFREE=URLROOT + '/free/fedora/rpmfusion-free-release-' + FEDORAVER + '.noarch.rpm' %} +{% set URLNONFREE=URLROOT + '/nonfree/fedora/rpmfusion-nonfree-release-' + FEDORAVER + '.noarch.rpm' %} +Installons les repos RPM Fusion : pkg.installed: - pkgs: - - "https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{FEDORAVER}}.noarch.rpm" - - "https://download1.rpmfusion.org/free/fedora/rpmfusion-nonfree-release-{{FEDORAVER}}.noarch.rpm" + - "{{URLFREE}}" + - "{{URLNONFREE}}" {% endif %} \ No newline at end of file