FAQ
Hey everyone,

I am using an orchestration state to manage a file, then run a cmd, then
run a highstate against the new minion. The problem I have is my sls wont
use the mine.get data like I would expect.

orchestration/newminion.sls

run_highstate:
   salt.state:
     - tgt: new_minon
     - highstate: True
{% for minion, build in salt['mine.get']('existing_minion', 'build_number')
%}
     - pillar:
         build: {{ build }}
{% endfor %}

We set the "build_number" when initially launching instances and I can
verify that running salt '*' mine.get '*' build_number (mine alias) returns
the correct number. The highstate runs fine with the exception is throws an
error that the pillar build is not set.

Any ideas?

Thank you

--
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 Jun 26, 2015 at 9:07 pm
    This may be a bug specific to the orchestrate runner. Probably related to
    the fact that runners are executed by the master, not a minion. Mind
    submitting an issue on Github?

    --
    Colton Myers
    Platform Engineer, SaltStack
    @basepi on Twitter/Github/IRC
    On Thu, Jun 18, 2015 at 10:01 AM, Matt SporkD wrote:

    Hey everyone,

    I am using an orchestration state to manage a file, then run a cmd, then
    run a highstate against the new minion. The problem I have is my sls wont
    use the mine.get data like I would expect.

    orchestration/newminion.sls

    run_highstate:
    salt.state:
    - tgt: new_minon
    - highstate: True
    {% for minion, build in salt['mine.get']('existing_minion',
    'build_number') %}
    - pillar:
    build: {{ build }}
    {% endfor %}

    We set the "build_number" when initially launching instances and I can
    verify that running salt '*' mine.get '*' build_number (mine alias) returns
    the correct number. The highstate runs fine with the exception is throws an
    error that the pillar build is not set.

    Any ideas?

    Thank you

    --
    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 @
postedJun 18, '15 at 4:01p
activeJun 26, '15 at 9:07p
posts2
users2

2 users in discussion

Matt SporkD: 1 post Colton Myers: 1 post

People

Translate

site design / logo © 2022 Grokbase