FAQ
hello,

i found this discussion from a while back

https://github.com/saltstack/salt/issues/2683

i tried it like so in b/top.sls, to try to include sls files from env a.

include:
   - a: tarballs
   - a: formulae

vxp:

   'E@.*salt-minion.*':
     - match: compound
     - tarballs
     - formulae/mongodb


i get this error when trying to feed a dict (a: tarbals for example) as one
of the includes


[DEBUG ] Results of YAML rendering:
OrderedDict([('include', [OrderedDict([('a', 'tarballs')]),
OrderedDict([('a', 'formulae')])]), ('a',
OrderedDict([('E@.*salt-minion.*', [OrderedDict([('match', 'compound')]),
'tarballs', 'formulae/mongodb', 'formulae/mongodb/server'])]))])
[DEBUG ] Loaded no_out as virtual quiet
[DEBUG ] Loaded json_out as virtual json
[DEBUG ] Loaded yaml_out as virtual yaml
[DEBUG ] Loaded pprint_out as virtual pprint
local:
     Data failed to compile:
----------
     Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2483, in
call_highstate
     top = self.get_top()
   File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2036, in
get_top
     tops = self.get_tops()
   File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1936, in
get_tops
     for sls in fnmatch.filter(self.avail[saltenv], sls_match):
   File "/usr/lib/python2.7/fnmatch.py", line 50, in filter
     if not pat in _cache:
TypeError: unhashable type: 'OrderedDict'

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Colton Myers at Aug 7, 2014 at 9:50 pm
    Note for anyone who finds this later. An issue was opened and resolve
    here: https://github.com/saltstack/salt/issues/14453

    Includes don't apply to top files, but rather only state files.

    http://docs.saltstack.com/en/latest/ref/states/include.html

    --
    Colton Myers

    On Wed, Jul 23, 2014 at 12:59 PM, wrote:


    hello,

    i found this discussion from a while back

    https://github.com/saltstack/salt/issues/2683

    i tried it like so in b/top.sls, to try to include sls files from env a.

    include:
    - a: tarballs
    - a: formulae

    vxp:

    'E@.*salt-minion.*':
    - match: compound
    - tarballs
    - formulae/mongodb


    i get this error when trying to feed a dict (a: tarbals for example) as
    one of the includes


    [DEBUG ] Results of YAML rendering:
    OrderedDict([('include', [OrderedDict([('a', 'tarballs')]),
    OrderedDict([('a', 'formulae')])]), ('a', OrderedDict([('E@.*salt-minion.*',
    [OrderedDict([('match', 'compound')]), 'tarballs', 'formulae/mongodb',
    'formulae/mongodb/server'])]))])
    [DEBUG ] Loaded no_out as virtual quiet
    [DEBUG ] Loaded json_out as virtual json
    [DEBUG ] Loaded yaml_out as virtual yaml
    [DEBUG ] Loaded pprint_out as virtual pprint
    local:
    Data failed to compile:
    ----------
    Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2483, in
    call_highstate
    top = self.get_top()
    File "/usr/lib/python2.7/dist-packages/salt/state.py", line 2036, in
    get_top
    tops = self.get_tops()
    File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1936, in
    get_tops
    for sls in fnmatch.filter(self.avail[saltenv], sls_match):
    File "/usr/lib/python2.7/fnmatch.py", line 50, in filter
    if not pat in _cache:
    TypeError: unhashable type: 'OrderedDict'

    --
    You received this message because you are subscribed to the Google Groups
    "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "Salt-users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsalt-users @
postedJul 23, '14 at 6:59p
activeAug 7, '14 at 9:50p
posts2
users2

2 users in discussion

Dmargrave: 1 post Colton Myers: 1 post

People

Translate

site design / logo © 2022 Grokbase