Puppet Class: rclone
- Defined in:
- manifests/init.pp
Summary
Download and install RcloneOverview
Install rclone binary and man page
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/init.pp', line 11
class rclone(
Pattern[/absent/, /latest/, /\d+\.\d+\.\d+/] $ensure = 'latest',
) {
$install_dir = '/opt/rclone'
$binary = '/usr/bin/rclone'
$man_page_dir = '/usr/local/share/man/man1'
$man_page = "${man_page_dir}/rclone.1"
case $ensure {
'absent': { contain rclone::uninstall }
default: { contain rclone::install }
}
exec { 'rclone mandb':
command => 'mandb',
path => '/usr/bin',
refreshonly => true,
}
}
|