rclone
: Download and install Rclone
rclone::install
: Ensures Rclone installedrclone::uninstall
: Removes rclone installed by this module
rclone::config
: General configuration for Rclone.rclone::config::gdrive
: Google Drive configuration for Rclone.rclone::config::s3
: S3 configuration for Rclone.
rclone::last_version
: Fetches the last released Rclone version from internet
Install rclone binary and man page
include rclone
The following parameters are available in the rclone
class:
Data type: Pattern[/absent/, /latest/, /\d+\.\d+\.\d+/]
installed version, can be 'latest', 'absent' or valid version string
Default value: 'latest'
Ensures Rclone configuration of given name, type and params. Include of rclone
is required.
rclone::config { 'my_remote':
os_user => 'my_user',
type => 'ftp',
options => {...}
}
The following parameters are available in the rclone::config
defined type:
Data type: Enum['present', 'absent']
configuration ensure
Default value: 'present'
Data type: String
operating system user - used to execute rclone commands, effective configuration owner
Data type: Enum[ 'amazon cloud drive', 'azureblob', 'b2', 'box', 'crypt', 'cache', 'chunker', 'drive', 'dropbox', 'fichier', 'ftp', 'google cloud storage', 'google photos', 'http', 'swift', 'hubic', 'jottacloud', 'koofr', 'local', 'mailru', 'mega', 'memory', 'onedrive', 'opendrive', 'pcloud', 'premiumizeme', 'putio', 'qingstor', 's3', 'sftp', 'sharefile', 'sugarsync', 'union', 'webdav', 'yandex']
configuration remote type
Data type: Hash[String, Optional[String]]
configuration options - Hash of options for rclone config
command
Data type: String
configuration name - should be unique among Rclone configurations, defaults to title
Default value: $title
Ensures Drive Rclone configuration of given name and params. Include of rclone
is required.
Support only service account credentials (token authentication requires human interaction when setup).
rclone::config::gdrive { 'drive_remote':
os_user => 'my_user',
client_id => 'SOME_CLIENT_ID',
client_secret => 'SOME_CLIENT_SECRET',
service_account_credentials => 'SERVICE_CREDENTIALS',
}
The following parameters are available in the rclone::config::gdrive
defined type:
ensure
os_user
config_name
client_id
client_secret
service_account_credentials
scope
root_folder_id
team_drive
Data type: Enum['present', 'absent']
configuration ensure
Default value: 'present'
Data type: String
operating system user - used to execute rclone commands, effective configuration owner
Data type: String
configuration name - should be unique among Rclone configurations, defaults to title
Default value: $title
Data type: String
Google drive client_id, maps to Rclone client_id
property
Data type: String
Google drive client_secret, maps to Rclone client_secret
property
Data type: String
Google drive service_account_credentials, maps to Rclone service_account_credentials
property
Data type: String
Google drive access scope, maps to Rclone scope
property
Default value: 'drive'
Data type: Optional[String]
Id of the drive root folder, maps to Rclone root_folder_id
property
Default value: undef
Data type: Optional[String]
Id of the team drive, maps to Rclone team_drive
property
Default value: undef
Ensures S3 Rclone configuration of given name and params. Include of rclone
is required.
Currently only AWS provider is supported.
rclone::config::s3 { 's3_remote':
os_user => 'my_user',
access_key_id => 'SOME_ACCESS_KEY',
secret_access_key => 'SECRET_ACCESS_KEY',
region => 'us-east-1',
}
The following parameters are available in the rclone::config::s3
defined type:
ensure
os_user
config_name
access_key_id
secret_access_key
region
s3_provider
canned_acl
endpoint
location_constraint
location_constraint
server_side_encryption
storage_class
Data type: Enum['present', 'absent']
configuration ensure
Default value: 'present'
Data type: String
operating system user - used to execute rclone commands, effective configuration owner
Data type: String
configuration name - should be unique among Rclone configurations, defaults to title
Default value: $title
Data type: String
S3 provider's access_key_id, maps to Rclone access_key_id
property
Data type: String
S3 provider's secret_access_key, maps to Rclone secret_access_key
property
Data type: String
S3 provider's region, maps to Rclone region
property
Data type: Enum['AWS']
S3 provider, maps to Rclone provider
property
Default value: 'AWS'
Data type: Optional[String]
S3 canned ACL, maps to Rclone acl
property
Default value: undef
Data type: Optional[String]
S3 provider's endpoint, maps to Rclone endpoint
property
Default value: undef
Data type: Optional[String]
S3 location_constraint, maps to Rclone location_constraint
property
Default value: undef
S3 location_constraint, maps to Rclone location_constraint
property
Default value: undef
Data type: Optional[String]
S3 server_side_encryption, maps to Rclone server_side_encryption
property
Default value: undef
Data type: Optional[String]
S3 storage_class, maps to Rclone storage_class
property
Default value: undef