salt-call on windows: busted, or am I doing it wrong?

357 views
Skip to first unread message

Bryan Oakley

unread,
Feb 18, 2014, 4:09:51 PM2/18/14
to salt-...@googlegroups.com
salt-call isn't doing what I think it should, and I'm trying to figure out if it's a bug or if I'm doing something wrong or have wrong expectations.

On my windows box I have the simplest of state files:

    npp:
      pkg:
        - installed

I'm trying to run that state locally to install notepad++. When I run it via a poweshell prompt, I don't get much output and it seems to do nothing:

    PS> salt-call --local state.sls npp
    
    Exiting gracefully on Control-c

I am *not* pressing ctrl-c, I'm just waiting for the minion to finish. 

If I run this same state file from a salt master, it works as expected.

When I turn on debug output, I don't see anything particularly useful (to my untrained eyes). There's a bunch of "Loaded ..." messages, and then it ends with:

    ...
    [DEBUG ] Skipping c:\salt\var\cache\salt\minion\extmods\renderers, it is not a directory
    [DEBUG ] Parsed args: ['npp']
    [DEBUG ] Parsed kwargs: {'__pub_fun': 'state.sls', '__pub_jid': '20140218150505802000', '__pub_pid': 280, '__pub_tgt':
    'salt-call'}
    [DEBUG ] Reading configuration from c:\salt\conf\minion
    
    
    Exiting gracefully on Ctrl-c

Am I doing something wrong, or have misconceptions about what salt-call can and can't do?

FWIW I have salt-call.exe 0.17.5-52-g2d4772c




Dmitry Golubenko

unread,
Feb 19, 2014, 1:12:59 AM2/19/14
to salt-...@googlegroups.com
В Втр, 18/02/2014 в 13:09 -0800, Bryan Oakley пишет:
> salt-call isn't doing what I think it should, and I'm trying to figure
> out if it's a bug or if I'm doing something wrong or have wrong
> expectations.
>
>
> On my windows box I have the simplest of state files:
>
>
> npp:
> pkg:
> - installed
>
>
> I'm trying to run that state locally to install notepad++. When I run
> it via a poweshell prompt, I don't get much output and it seems to do
> nothing:
>
>
> PS> salt-call --local state.sls npp
short: remove `--local'

long: use --local for masterless setup and configure /etc/salt/minion to
file_roots/pillar_roots/... to path on local system where you have
states/pillars/...
OR
have states/pillars on master and configure `master:'
in /etc/salt/minion

do not try to mix both operational modes with same minion configs



Bryan Oakley

unread,
Feb 19, 2014, 10:11:23 AM2/19/14
to salt-...@googlegroups.com, dmitry.g...@xiag.ch
I don't understand the answer. I _want_ a masterless setup, which is why I included --local. Removing --local means it will try to contact a master, which I don't have. 

I found this, which I think answers my question: https://github.com/saltstack/salt/issues/6180


On Wednesday, February 19, 2014 12:12:59 AM UTC-6, Dmitry Golubenko wrote:
В Втр, 18/02/2014 в 13:09 -0800, Bryan Oakley пишет:
> salt-call isn't doing what I think it should, and I'm trying to figure
> out if it's a bug or if I'm doing something wrong or have wrong
> expectations...
> ...

Dmitry Golubenko

unread,
Feb 19, 2014, 10:46:45 PM2/19/14
to salt-...@googlegroups.com, Bryan Oakley
В Срд, 19/02/2014 в 07:11 -0800, Bryan Oakley пишет:
> I don't understand the answer. I _want_ a masterless setup, which is
> why I included --local. Removing --local means it will try to contact
> a master, which I don't have.
if you do not have master why write this in previous email?
Reply all
Reply to author
Forward
0 new messages