Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation is broken on vanilla Debian 9 (2016.11) #407

Closed
gboddin opened this issue Apr 2, 2019 · 1 comment
Closed

Installation is broken on vanilla Debian 9 (2016.11) #407

gboddin opened this issue Apr 2, 2019 · 1 comment

Comments

@gboddin
Copy link

gboddin commented Apr 2, 2019

Since the fix of #364 a new issue has been introduced which makes it impossible to use this recipe on vanilla Debian.

osfamilymap.yaml has been modified with salt['pillar.filter_by'] :

{% set py_ver_dir = salt['pillar.filter_by'](ospyver, pillar='salt:py_ver', default='py2') %}

salt['pillar.filter_by'] doesn't seems to be available on the distro provided version ( 2016.11.2 ).

Result is :

dotnetcore002:
    - Rendering SLS 'base:salt.pkgrepo.debian' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'pillar.filter_by'
      /var/cache/salt/minion/files/base/salt/osfamilymap.yaml(6):
      ---
      # -*- coding: utf-8 -*-
      # vim: ft=yaml
      
      {% import_yaml "salt/ospyvermap.yaml" as ospyvermap %}
      {% set ospyver = salt['grains.filter_by'](ospyvermap, grain='os_family') or {} %}
      {% set py_ver_dir = salt['pillar.filter_by'](ospyver, pillar='salt:py_ver', default='py2') %}    <======================
      
      {% set osrelease = salt['grains.get']('osrelease') %}
      {% set salt_release = salt['pillar.get']('salt:release', 'latest') %}
      {% if salt_release.split('.')|length >= 3 %}
      {% set salt_release = 'archive/' ~ salt_release %}
      [...]
      ---
@myii myii changed the title Installation is broken on vanilla Debian 9 Installation is broken on vanilla Debian 9 (2016.11) Apr 2, 2019
@myii
Copy link
Member

myii commented Apr 2, 2019

@gboddin Apologies for this regression, this is a duplicate of #405. This isn't specific to Debian 9 but rather 2016.11 as you pointed out. The thing is, 2016.11 is no longer supported, with the release of 2019.2. The full explanation is in #405, particularly this comment. There is also a workaround there if you need to continue supporting 2016.11 minions.

@gboddin gboddin closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants