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

I cannot get cat.py to work #1

Open
morgana2313 opened this issue Nov 1, 2017 · 0 comments
Open

I cannot get cat.py to work #1

morgana2313 opened this issue Nov 1, 2017 · 0 comments

Comments

@morgana2313
Copy link

Hello,

I'm quite new to Saltstack, so I'm probably doing something wrong with cat.py, I hope you can point me in the right direction.

In pillar/my_dir three files: one.sls, two.sls and three.sls each containing a debug statement like debug_one: "debug"

my pillar/top.sls:

base:
 '*':
    - test

my pillar/test.sls:

#include:
# - mydir.one
# - mydir.two
# - mydir.three
{% for ln in salt.cat.directory( "mydir" ) %}
jrk_debug: "{{ ln }}"
{%- endfor %}

When I use the include in test.sls it works:

# salt-call pillar.raw
local:
    ----------
    debug_one:
        debug
    debug_three:
        debug
    debug_two:
        debug

but the cat.directory example does nothing:

# salt-call pillar.raw
local:
    ----------
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

1 participant