mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #22736 from bemeyert/21840-improve_cmd.run_env_docs
improve cmd.run env documentation
This commit is contained in:
commit
f29e7a571b
@ -138136,8 +138136,8 @@ Example:
|
|||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
.ft C
|
.ft C
|
||||||
salt://scripts/foo.sh:
|
foo-script:
|
||||||
cmd.script:
|
cmd.run:
|
||||||
\- env:
|
\- env:
|
||||||
\- BATCH: \(aqyes\(aq
|
\- BATCH: \(aqyes\(aq
|
||||||
.ft P
|
.ft P
|
||||||
@ -138155,6 +138155,19 @@ quotes to be used as strings. More info on this (and other) PyYAML
|
|||||||
idiosyncrasies can be found \fBhere\fP\&.
|
idiosyncrasies can be found \fBhere\fP\&.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
|
.sp
|
||||||
|
Variables as values are not evaluated. So $PATH in the following example is a
|
||||||
|
literal '$PATH':
|
||||||
|
.INDENT 7.0
|
||||||
|
.INDENT 3.5
|
||||||
|
.sp
|
||||||
|
.nf
|
||||||
|
.ft C
|
||||||
|
bar-script:
|
||||||
|
cmd.run:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
.UNINDENT
|
||||||
|
.UNINDENT
|
||||||
.TP
|
.TP
|
||||||
.B stateful
|
.B stateful
|
||||||
The command being executed is expected to return data about executing
|
The command being executed is expected to return data about executing
|
||||||
@ -138286,6 +138299,19 @@ quotes to be used as strings. More info on this (and other) PyYAML
|
|||||||
idiosyncrasies can be found \fBhere\fP\&.
|
idiosyncrasies can be found \fBhere\fP\&.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
|
.sp
|
||||||
|
Variables as values are not evaluated. So $PATH in the following example is a
|
||||||
|
literal '$PATH':
|
||||||
|
.INDENT 7.0
|
||||||
|
.INDENT 3.5
|
||||||
|
.sp
|
||||||
|
.nf
|
||||||
|
.ft C
|
||||||
|
salt://scripts/bar.sh:
|
||||||
|
cmd.script:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
.UNINDENT
|
||||||
|
.UNINDENT
|
||||||
.TP
|
.TP
|
||||||
.B umask
|
.B umask
|
||||||
The umask (in octal) to use when running the command.
|
The umask (in octal) to use when running the command.
|
||||||
@ -138360,8 +138386,8 @@ Example:
|
|||||||
.sp
|
.sp
|
||||||
.nf
|
.nf
|
||||||
.ft C
|
.ft C
|
||||||
salt://scripts/foo.sh:
|
script-foo:
|
||||||
cmd.script:
|
cmd.wait:
|
||||||
\- env:
|
\- env:
|
||||||
\- BATCH: \(aqyes\(aq
|
\- BATCH: \(aqyes\(aq
|
||||||
.ft P
|
.ft P
|
||||||
@ -138379,6 +138405,19 @@ quotes to be used as strings. More info on this (and other) PyYAML
|
|||||||
idiosyncrasies can be found \fBhere\fP\&.
|
idiosyncrasies can be found \fBhere\fP\&.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
|
.sp
|
||||||
|
Variables as values are not evaluated. So $PATH in the following example is a
|
||||||
|
literal '$PATH':
|
||||||
|
.INDENT 7.0
|
||||||
|
.INDENT 3.5
|
||||||
|
.sp
|
||||||
|
.nf
|
||||||
|
.ft C
|
||||||
|
script-bar:
|
||||||
|
cmd.wait:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
.UNINDENT
|
||||||
|
.UNINDENT
|
||||||
.TP
|
.TP
|
||||||
.B umask
|
.B umask
|
||||||
The umask (in octal) to use when running the command.
|
The umask (in octal) to use when running the command.
|
||||||
@ -138460,7 +138499,7 @@ Example:
|
|||||||
.nf
|
.nf
|
||||||
.ft C
|
.ft C
|
||||||
salt://scripts/foo.sh:
|
salt://scripts/foo.sh:
|
||||||
cmd.script:
|
cmd.wait_script:
|
||||||
\- env:
|
\- env:
|
||||||
\- BATCH: \(aqyes\(aq
|
\- BATCH: \(aqyes\(aq
|
||||||
.ft P
|
.ft P
|
||||||
@ -138478,6 +138517,19 @@ quotes to be used as strings. More info on this (and other) PyYAML
|
|||||||
idiosyncrasies can be found \fBhere\fP\&.
|
idiosyncrasies can be found \fBhere\fP\&.
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
.UNINDENT
|
.UNINDENT
|
||||||
|
.sp
|
||||||
|
Variables as values are not evaluated. So $PATH in the following example is a
|
||||||
|
literal '$PATH':
|
||||||
|
.INDENT 7.0
|
||||||
|
.INDENT 3.5
|
||||||
|
.sp
|
||||||
|
.nf
|
||||||
|
.ft C
|
||||||
|
salt://scripts/bar.sh:
|
||||||
|
cmd.wait_script:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
.UNINDENT
|
||||||
|
.UNINDENT
|
||||||
.TP
|
.TP
|
||||||
.B umask
|
.B umask
|
||||||
The umask (in octal) to use when running the command.
|
The umask (in octal) to use when running the command.
|
||||||
|
@ -428,8 +428,8 @@ def wait(name,
|
|||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
salt://scripts/foo.sh:
|
script-foo:
|
||||||
cmd.script:
|
cmd.wait:
|
||||||
- env:
|
- env:
|
||||||
- BATCH: 'yes'
|
- BATCH: 'yes'
|
||||||
|
|
||||||
@ -442,6 +442,15 @@ def wait(name,
|
|||||||
idiosyncrasies can be found :doc:`here
|
idiosyncrasies can be found :doc:`here
|
||||||
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
||||||
|
|
||||||
|
Variables as values are not evaluated. So $PATH in the following
|
||||||
|
example is a literal '$PATH':
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
script-bar:
|
||||||
|
cmd.wait:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
|
||||||
umask
|
umask
|
||||||
The umask (in octal) to use when running the command.
|
The umask (in octal) to use when running the command.
|
||||||
|
|
||||||
@ -537,7 +546,7 @@ def wait_script(name,
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
salt://scripts/foo.sh:
|
salt://scripts/foo.sh:
|
||||||
cmd.script:
|
cmd.wait_script:
|
||||||
- env:
|
- env:
|
||||||
- BATCH: 'yes'
|
- BATCH: 'yes'
|
||||||
|
|
||||||
@ -550,6 +559,15 @@ def wait_script(name,
|
|||||||
idiosyncrasies can be found :doc:`here
|
idiosyncrasies can be found :doc:`here
|
||||||
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
||||||
|
|
||||||
|
Variables as values are not evaluated. So $PATH in the following
|
||||||
|
example is a literal '$PATH':
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
salt://scripts/bar.sh:
|
||||||
|
cmd.wait_script:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
|
||||||
umask
|
umask
|
||||||
The umask (in octal) to use when running the command.
|
The umask (in octal) to use when running the command.
|
||||||
|
|
||||||
@ -626,8 +644,8 @@ def run(name,
|
|||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
salt://scripts/foo.sh:
|
script-foo:
|
||||||
cmd.script:
|
cmd.run:
|
||||||
- env:
|
- env:
|
||||||
- BATCH: 'yes'
|
- BATCH: 'yes'
|
||||||
|
|
||||||
@ -640,6 +658,15 @@ def run(name,
|
|||||||
idiosyncrasies can be found :doc:`here
|
idiosyncrasies can be found :doc:`here
|
||||||
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
||||||
|
|
||||||
|
Variables as values are not evaluated. So $PATH in the following
|
||||||
|
example is a literal '$PATH':
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
script-bar:
|
||||||
|
cmd.run:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
|
||||||
stateful
|
stateful
|
||||||
The command being executed is expected to return data about executing
|
The command being executed is expected to return data about executing
|
||||||
a state
|
a state
|
||||||
@ -845,6 +872,15 @@ def script(name,
|
|||||||
idiosyncrasies can be found :doc:`here
|
idiosyncrasies can be found :doc:`here
|
||||||
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
</topics/troubleshooting/yaml_idiosyncrasies>`.
|
||||||
|
|
||||||
|
Variables as values are not evaluated. So $PATH in the following
|
||||||
|
example is a literal '$PATH':
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
salt://scripts/bar.sh:
|
||||||
|
cmd.script:
|
||||||
|
- env: "PATH=/some/path:$PATH"
|
||||||
|
|
||||||
umask
|
umask
|
||||||
The umask (in octal) to use when running the command.
|
The umask (in octal) to use when running the command.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user