saltstack-formulas / nagios-formula

nagios-formula
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
21 stars 73 forks source link

[BUG] E: Unable to locate package u"nagios-plugins-contrib" #73

Closed arthurzenika closed 4 years ago

arthurzenika commented 4 years ago

Your setup

Formula commit hash / release tag

fb96ae05ca094d5a5a3405d10a96fbfc762d1fea


Bug details

Describe the bug

Details of the bug are upstream https://github.com/saltstack/salt/issues/55620 notifying here in case this is not an upstream bug

All other sections of the bug report are on that issue.

myii commented 4 years ago

@arthurlogilab This will almost definitely be resolved by appending | json to the following line:

https://github.com/saltstack-formulas/nagios-formula/blob/fb96ae05ca094d5a5a3405d10a96fbfc762d1fea/nagios/plugins.sls#L10

Meaning:

    - pkgs: {{ salt['pillar.get']("nagios:plugins:extra_pkgs") | json }}

Please let us know if that does the trick for you.

myii commented 4 years ago

FYI: https://docs.saltstack.com/en/latest/topics/releases/2019.2.0.html#non-backward-compatible-change-to-yaml-renderer.

We're not using | tojson just yet because we're still supporting older version of Salt that don't have that. | json works out fine for the time being.

myii commented 4 years ago

Fixed by #75.

myii commented 4 years ago

@arthurlogilab You'll probably want to close the upstream issue: https://github.com/saltstack/salt/issues/55620.