Puppet Class: rclone

Defined in:
manifests/init.pp

Summary

Download and install Rclone

Overview

Install rclone binary and man page

Examples:

include rclone

Parameters:

  • ensure (Pattern[/absent/, /latest/, /\d+\.\d+\.\d+/]) (defaults to: 'latest')

    installed version, can be ‘latest’, ‘absent’ or valid version string



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,
  }
}