Skip to content

Commit

Permalink
fix(package): amazonlinux defaults to python2
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed Jul 23, 2020
1 parent 4c93c11 commit 926c779
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
7 changes: 6 additions & 1 deletion letsencrypt/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
{#- Start with defaults from defaults.sls #}
{% import_yaml 'letsencrypt/defaults.yaml' as defaults %}
{% import_yaml 'letsencrypt/osfamilymap.yaml' as osfamilymap %}
{% import_yaml 'letsencrypt/osmap.yaml' as osmap %}

{% set letsencrypt = salt['grains.filter_by'](
defaults,
merge = salt['grains.filter_by'](
osfamilymap,
grain='os_family',
merge = salt['pillar.get']('letsencrypt', {}),
merge=salt['grains.filter_by'](
osmap,
grain='os',
merge = salt['pillar.get']('letsencrypt', {}),
),
),
base='letsencrypt')
%}
16 changes: 16 additions & 0 deletions letsencrypt/osmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
#
# Setup variables using grains['os'] based logic.
# You just need to add the key:values for an `os` that differ
# from `defaults.yaml` + `osarch.yaml` + `os_family.yaml`.
# Only add an `os` which is/will be supported by the formula.
#
# If you do not need to provide defaults via the `os` grain,
# you will need to provide at least an empty dict in this file, e.g.
# osmap: {}
---
# os_family: RedHat
Amazon:
pkgs:
- python2-certbot-apache

0 comments on commit 926c779

Please sign in to comment.