Module for managing container and VM images
New in version 2014.7.0.
Return which platforms are available
CLI Example:
salt myminion genesis.avail_platforms
Create an image for a specific platform.
Please note that this function MUST be run as root, as images that are created make files belonging to root.
dir
). Future support will exist for sparse
.dir
img_format
, which filesystem to format the image to. By default, ext2
.dir
img_format
, a dict of opts may be specified.wheezy
on Debian.dir
, then the size of the image must be specified.dir
, then the image must be mounted somewhere. If the mount_dir
is not specified, then it will be created at /opt/salt-genesis.<random_uuid>
. This directory will be unmounted and removed when the process is finished.yum
, centos-release
and iputils
by default.CLI Examples:
salt myminion genesis.bootstrap pacman /root/arch salt myminion genesis.bootstrap rpm /root/redhat salt myminion genesis.bootstrap deb /root/wheezy arch=amd64 flavor=wheezy static_qemu=/usr/bin/qemu-x86_64-static
Recurse through a set of dependencies reported by ldd
, to find associated dependencies.
Please note that this does not necessarily resolve all (non-package) dependencies for a file; but it does help.
CLI Example:
salt myminion genesis.ldd_deps bash salt myminion genesis.ldd_deps /bin/bash
Convert an installation file/script to an SLS file. Currently supports kickstart
, preseed
, and autoyast
.
CLI Examples:
salt <minion> genesis.mksls kickstart /path/to/kickstart.cfg salt <minion> genesis.mksls kickstart /path/to/kickstart.cfg /path/to/dest.sls
New in version Beryllium.
Pack up a directory structure, into a specific format
CLI Examples:
salt myminion genesis.pack centos /root/centos salt myminion genesis.pack centos /root/centos pack_format='tar'
Unpack an image into a directory structure
CLI Example:
salt myminion genesis.unpack centos /root/centos
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.genesis.html