salt -I 'stuff:' is resolving to all minions

7 views
Skip to first unread message

Gord Austin

unread,
Jun 23, 2017, 1:06:21 PM6/23/17
to Salt-users
I'm trying to do minion targeting using pillar, as documented at https://docs.saltstack.com/en/latest/topics/targeting/pillar.html.
Instead, salt is running the state on all minions (I only have two here).

Any ideas why?

# salt -I 'mgd_nodes:trial' state.sls check_pillar                # That's -I as in --pillar
wpglxsaltt1:
----------
          ID: trace_1
    Function: cmd.run
        Name: echo "High level qualifier was found in pillar.  host $HOSTNAME"
      Result: True
     Comment: Command "echo "High level qualifier was found in pillar.  host $HOSTNAME"" run
     Started: 11:53:42.971631
    Duration: 8.976 ms
     Changes:   
              ----------
              pid:
                  19494
              retcode:
                  0
              stderr:
              stdout:
                  High level qualifier was found in pillar.  host wpglxsaltt1.some_corporation.com

Summary for wpglxsaltt1
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1
Total run time:   8.976 ms
wpgrhatt1:
----------
          ID: trace_1
    Function: cmd.run
        Name: echo "High level qualifier was found in pillar.  host $HOSTNAME"
      Result: True
     Comment: Command "echo "High level qualifier was found in pillar.  host $HOSTNAME"" run
     Started: 11:53:43.020582
    Duration: 9.61 ms
     Changes:   
              ----------
              pid:
                  12038
              retcode:
                  0
              stderr:
              stdout:
                  High level qualifier was found in pillar.  host wpgrhatt1.some_corporation.com

Summary for wpgrhatt1
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1
Total run time:   9.610 ms

Reply all
Reply to author
Forward
0 new messages