From 8fee9f05bd86c549a050a5b4c555fa0d532493d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20B=C3=A9rtoli?= Date: Thu, 3 Feb 2022 11:45:11 -0300 Subject: [PATCH] revert(pkg): use grains.osfinger in a format suitable for all platforms --- nginx/pkg.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/pkg.sls b/nginx/pkg.sls index 4dd8d0e..aec0bea 100644 --- a/nginx/pkg.sls +++ b/nginx/pkg.sls @@ -153,7 +153,7 @@ nginx_zypp_repo: {% endif %} {% if grains.os_family == 'RedHat' %} -{% if grains.osfinger in ['Amazon Linux-2'] %} + {% if grains.get('osfinger', '') == 'Amazon Linux-2' %} nginx_epel_repo: pkgrepo.managed: - name: epel @@ -178,7 +178,7 @@ nginx_yum_repo: {%- endif %} - name: nginx - humanname: nginx repo - {%- if salt['grains.get']('os') == 'CentOS' %} + {%- if grains.os == 'CentOS' %} - baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/' {%- else %} - baseurl: 'http://nginx.org/packages/rhel/{{ nginx.lookup.rh_os_releasever }}/$basearch/'