Virtual machine image management tools
salt.modules.seed.
apply
(path, id_=None, config=None, approve_key=True, install=True, prep_install=False, pub_key=None, priv_key=None, mount_point=None)¶Seed a location (disk image, directory, or block device) with the minion config, approve the minion's key, and/or install salt-minion.
CLI 范例:
salt 'minion' seed.apply path id [config=config_data] \
[gen_key=(true|false)] [approve_key=(true|false)] \
[install=(true|false)]
salt.modules.seed.
mkconfig
(config=None, tmp=None, id_=None, approve_key=True, pub_key=None, priv_key=None)¶Generate keys and config and put them in a tmp directory.
CLI 范例:
salt 'minion' seed.mkconfig [config=config_data] [tmp=tmp_dir] \
[id_=minion_id] [approve_key=(true|false)]
salt.modules.seed.
prep_bootstrap
(mpt)¶Update and get the random script to a random place
CLI 范例:
salt '*' seed.prep_bootstrap /tmp