mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add argument to init
This commit is contained in:
parent
2be3f8b5bb
commit
8977ddad59
1 changed files with 6 additions and 1 deletions
|
@ -1142,6 +1142,7 @@ def init(name,
|
|||
bootstrap_args=None,
|
||||
bootstrap_shell=None,
|
||||
bootstrap_url=None,
|
||||
uses_systemd=True,
|
||||
**kwargs):
|
||||
'''
|
||||
Initialize a new container.
|
||||
|
@ -1295,6 +1296,9 @@ def init(name,
|
|||
unconditional_install
|
||||
Run the script even if the container seems seeded
|
||||
|
||||
uses_systemd
|
||||
Set to true if the lxc template has systemd installed
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
@ -1615,7 +1619,8 @@ def init(name,
|
|||
bootstrap_delay=bootstrap_delay,
|
||||
bootstrap_url=bootstrap_url,
|
||||
bootstrap_shell=bootstrap_shell,
|
||||
bootstrap_args=bootstrap_args)
|
||||
bootstrap_args=bootstrap_args,
|
||||
uses_systemd=uses_systemd)
|
||||
except (SaltInvocationError, CommandExecutionError) as exc:
|
||||
ret['comment'] = 'Bootstrap failed: ' + exc.strerror
|
||||
ret['result'] = False
|
||||
|
|
Loading…
Add table
Reference in a new issue