Running state.highstate for a POS boot system

58 views
Skip to first unread message

JG Du Preez

unread,
Aug 11, 2020, 12:34:26 PM8/11/20
to Salt-users
Hey Guys,

If you could help me on an issue I am experiencing.
Any guidence would be appreciated.


BR001.QEMU-StandardPCi440FXPIIX1996-9e25:
    Data failed to compile:
----------
    Specified SLS packages.packages_9e2593c968bc6b689febe1455f2ed1d0 in saltenv base is not available on the salt master or through a configured fileserver
----------
    Specified SLS custom.custom_9e2593c968bc6b689febe1455f2ed1d0 in saltenv base is not available on the salt master or through a configured fileserver
----------
    Rendering SLS 'base:services.salt-minion' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'pkg.list_repos'
/var/cache/salt/minion/files/base/channels/disablelocalrepos.sls(8):
---
[...]
{% if not repos_disabled is defined %}
{% set repos_disabled = {'match_str': 'susemanager:', 'matching': false} %}
{% endif %}
{% do repos_disabled.update({'count': 0}) %}

{% set repos = salt['pkg.list_repos']() %}    <======================
{% for alias, data in repos.items() %}
{% if grains['os_family'] == 'Debian' %}
{% for entry in data %}
{% if (repos_disabled.match_str in entry['file'])|string == repos_disabled.matching|string and entry.get('enabled', True) %} 
disable_repo_{{ repos_disabled.count }}:
[...]
---


Reply all
Reply to author
Forward
0 new messages