mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix documentation: add an example how to export system to the Kiwi
This commit is contained in:
parent
fe300ccf73
commit
e36821510f
1 changed files with 7 additions and 0 deletions
|
@ -206,6 +206,13 @@ def export(local=False, path="/tmp", format='qcow2'):
|
|||
* **local**: Specifies True or False if the export has to be in the local file. Default: False.
|
||||
* **path**: If `local=True`, then specifies the path where file with the Kiwi description is written.
|
||||
Default: `/tmp`.
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash:
|
||||
|
||||
salt myminion node.export
|
||||
salt myminion node.export format=iso path=/opt/builds/
|
||||
'''
|
||||
if getpass.getuser() != 'root':
|
||||
raise CommandExecutionError('In order to export system, the minion should run as "root".')
|
||||
|
|
Loading…
Add table
Reference in a new issue