Table of Contents
This type is of BETA quality:
If you are fine with these constraints, please read on.
This cdist type allows you to mirror local directories to the target host using rsync. Rsync will be installed in the manifest of the type. If group or owner are giveng, a recursive chown will be executed on the target host.
A slash will be appended to the source directory so that only the contents of the directory are taken and not the directory name itself.
# You can use any source directory
__rsync /tmp/testdir \
    --source /etc
# Use source from type
__rsync /etc \
    --source "$__type/files/package"
# Allow multiple __rsync objects to write to the same dir
__rsync mystuff \
    --destination /usr/local/bin \
    --source "$__type/files/package"
__rsync otherstuff \
    --destination /usr/local/bin \
    --source "$__type/files/package2"