On Wed, Aug 20, 2014 at 5:57 AM, Alfredo Palhares
<
maste...@masterkorp.net> wrote:
> Any more ideas ? If not I will open an issue on github.
Go through each step individually to find the source of the issue.
``filter_by`` is just a shorthand for doing two or three operations in
one line. Use the template below and change the variable that is
getting echoed to see the result of each step.
{% set lookup_table = {
"Debian": {
"amd64": {
"package": "my_formula_amd64.deb",
"md5": "3c02ef5f9c4aa28eacdc68b230277af3",
},
"i686": {
"package": "my_formula.deb",
"md5": "efd0792fba61b6c416321c6319a77f99",
},
"i386": {
"package": "my_formula.deb",
"md5": "c011c674fce6dd8880eee31e052ae62b",
}
},
"MacOS": {
"x86_64": {
"package": "my_formula_amd64.deb",
"md5": "3c02ef5f9c4aa28eacdc68b230277af3",
},
},
} %}
{% set os_map = lookup_table.get(grains.os_family, {}) %}
{% set arch_map = os_map.get(grains.osarch, {}) %}
{% set map = {} %}
{% do map.update(arch_map) %}
{% do map.update(salt['pillar.get']('my_formula:lookup', {})) %}