salt.modules.chroot module

maintainer

Alberto Planas <aplanas@suse.com>

maturity

new

depends

None

platform

Linux

salt.modules.chroot.call(name, function, *args, **kwargs)

Executes a Salt function inside a chroot environment.

The chroot does not need to have Salt installed, but Python is required.

name

Path to the chroot environment

function

Salt execution module function

CLI Example:

salt myminion chroot.call /chroot test.ping
salt.modules.chroot.create(name)

Create a basic chroot environment.

Note that this environment is not functional. The caller needs to install the minimal required binaries, including Python if chroot.call is called.

name

Path to the chroot environment

CLI Example:

salt myminion chroot.create /chroot
salt.modules.chroot.exist(name)

Return True if the chroot environment is present.