mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
lxc: saltify -> bootstrap; lxc & seed: doc improvements
This commit is contained in:
parent
fd929044f1
commit
ee70eed662
@ -1011,14 +1011,14 @@ def set_dns(name, dnsservers=None, searchdomains=None):
|
||||
return ret
|
||||
|
||||
|
||||
def saltify(name, config=None, approve_key=True, install=True):
|
||||
def bootstrap(name, config=None, approve_key=True, install=True):
|
||||
'''
|
||||
Install and configure salt in a container.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt 'minion' lxc.saltify name [config=config_data] \\
|
||||
[approve_key=(true|false)] [approve_key=(true|false)]
|
||||
salt 'minion' lxc.bootstrap name [config=config_data] \\
|
||||
[approve_key=(true|false)] [install=(true|false)]
|
||||
|
||||
config
|
||||
Minion configuration options. By default, the 'master' option is set to
|
||||
|
@ -84,7 +84,9 @@ def apply_(path, id_=None, config=None, approve_key=True, install=True,
|
||||
Install salt-minion, if absent. Default: true.
|
||||
|
||||
prep_install
|
||||
Prepare the bootstrap script, but don't run it. Default: false
|
||||
Prepare the bootstrap script, but don't run it. The files needed for
|
||||
instllation (bootstrap.py, config, and keys) will be placed in /tmp
|
||||
on the target path/device. Default: false
|
||||
'''
|
||||
stats = __salt__['file.stats'](path, follow_symlinks=True)
|
||||
if not stats:
|
||||
|
Loading…
Reference in New Issue
Block a user