forked from Infra/risotto
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
---
|
||
uri: execution.salt.exec
|
||
|
||
description: |
|
||
Planifie l’exécution d’une commande sur des minions.
|
||
|
||
sampleuse: ~
|
||
|
||
domain: execution-domain
|
||
|
||
pattern: rpc
|
||
|
||
public: false
|
||
|
||
parameters:
|
||
minion_pattern:
|
||
type: String
|
||
description: Patron de sélection des minions.
|
||
help: Le patron de sélection est au format glob.
|
||
command:
|
||
type: String
|
||
description: Commande SaltStack à exécuter.
|
||
arg:
|
||
type: String
|
||
description: Arguments de la commande SaltStack.
|
||
default: null
|
||
client_mode:
|
||
type: String
|
||
description: Mode d’exécution des commandes SaltStack.
|
||
help: |
|
||
Utiliser un des modes de communication parmi :
|
||
- « local »
|
||
- « local_async »
|
||
default: local_async
|
||
tgt_type:
|
||
type: String
|
||
description: Type de cible de la commande.
|
||
help: |
|
||
valeurs possibles :
|
||
glob - Bash glob completion - Default
|
||
pcre - Perl style regular expression
|
||
list - Python list of hosts
|
||
grain - Match based on a grain comparison
|
||
grain_pcre - Grain comparison with a regex
|
||
pillar - Pillar data comparison
|
||
pillar_pcre - Pillar data comparison with a regex
|
||
nodegroup - Match on nodegroup
|
||
range - Use a Range server for matching
|
||
compound - Pass a compound match string
|
||
ipcidr - Match based on Subnet (CIDR notation) or IPv4 address.
|
||
default: glob
|
||
|
||
response:
|
||
type: 'SaltExec'
|
||
description: Retour de la tâche planifiée par SaltStack.
|
||
|
||
errors:
|
||
- uri: execution.salt.exec.error.missing-command
|
||
- uri: execution.salt.exec.error.missing-minion_pattern
|
||
- uri: execution.salt.exec.error.login
|
||
- uri: execution.salt.exec.error.execute
|
||
|
||
related:
|
||
- execution.salt.job.list
|
||
- execution.salt.job.describe
|