NAME
Kanku::Handler::CopyProfile
SYNOPSIS
Here is an example how to configure the module in your jobs file or KankuFile
- use_module: Kanku::Handler::CopyProfile options: users: - root - kanku tasks: - cmd: cp src: ~/.gitconfig - cmd: cp src: ~/.vimrc - cmd: cp src: ~/.vim/ recursive: 1 - cmd: mkdir path: ~/.config/ - cmd: cp src: ~/.config/osc/ dst: ~/.config/osc/ recursive: 1 - cmd: chown owner: kanku:users recursive: 1 path: ~/.config/ - cmd: chmod mode: 700 path: ~/.config/
DESCRIPTION
This handler could help to configure your environment by copying files, creating directories and change permissions.
Its recommended to create a config section named 'Kanku::Handler::CopyProfile' in your kanku-config.yml and set the defaults there.
In a KankuFile it should be used without and options.
OPTIONS
users : array of users to deploy your Profile tasks : array of tasks to execute for profle deployment. Each task requires a 'cmd'. 'cmd' can be one of the following * cp (uses scp) * src * dst * recursive * chmod * mode * path * recursive * chown * owner * path * recursive * mkdir * path commands : array of commands to execute
CONTEXT
getters
NONE
setters
NONE
DEFAULTS
SEE ALSO Kanku::Roles::SSH AND kanku-config.yml