salt.modules.publish

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.publish

Publish a command from a minion to a target

`salt.modules.publish.` `full_data`(tgt, fun, arg=None, expr_form='glob', returner='', timeout=5)

  Return the full data about the publication, this is invoked in the same way as the publish function

  CLI Example:

      salt system.example.com publish.full_data '*' cmd.run 'ls -la /tmp'

`salt.modules.publish.` `normalize_arg`(arg)

`salt.modules.publish.` `publish`(tgt, fun, arg=None, expr_form='glob', returner='', timeout=5)

  Publish a command from the minion out to other minions, publications need to be enabled on the Salt master and the minion needs to have permission to publish the command. The Salt master will also prevent a recursive publication loop, this means that a minion cannot command another minion to command another minion as that would create an infinite command loop.

  The arguments sent to the minion publish function are separated with commas. This means that for a minion executing a command with multiple args it will look like this:

      salt system.example.com publish.publish '*' user.add 'foo,1020,1020'

  CLI Example:

      salt system.example.com publish.publish '*' cmd.run 'ls -la /tmp'

`salt.modules.publish.` `runner`(fun, arg=None)

  Execute a runner on the master and return the data from the runner function

  CLI Example:

      salt publish.runner manage.down

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »