Forge Home

btsync

BTSync installation and configuration module

10,593 downloads

9,899 latest version

3.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.6 (latest)
  • 0.0.4
  • 0.0.3
  • 0.0.1
released Apr 1st 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'gsick-btsync', '0.0.6'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add gsick-btsync
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install gsick-btsync --version 0.0.6

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

gsick/btsync — version 0.0.6 Apr 1st 2014

Build Status Coverage Status (100% with rspec-puppet)

puppet-btsync

BTSync installation and configuration module BTSync

Table of Contents

Status

Beta version like BTSync (0.0.6 released)

Usage

In your puppet file

node default {
  include btsync
}

In your hieradata file

---
btsync::webui_login: my_login
btsync::webui_pwd: my_password
btsync::api_key: my_api_key

It will create /opt/btsync/btsync.json with these default values:

{
  "device_name": "My Sync Device",
  "listening_port" : 0,
  "storage_path" : "/opt/btsync/.sync",
  "pid_file" : "/var/run/btsync.pid",
  "check_for_updates" : false,
  "use_upnp" : true,
  "download_limit" : 0,
  "upload_limit" : 0,
  "use_gui" : false,
  "webui" : {
    "listen" : "127.0.0.1:8888",
    "login" : "my_login",
    "password" : "my_password",
    "api_key" : "my_api_key"
  }
}

Parameters

  • btsync::device_name: name of the device, default all My Sync Device
  • btsync::listening_port: listening port, default all 0
  • btsync::use_upnp: upnp activated, default true
  • btsync::download_limit: download limit, default no limit 0
  • btsync::upload_limit: upload limit, default no limit 0
  • btsync::webui_login: the login for web ui (required)
  • btsync::webui_pwd: the password for web ui (required)
  • btsync::api_key: the btsync api key (required)
  • btsync::glibc23: boolean, btsync version, default true
  • btsync::install_dir: btsync installation directory, default /opt/btsync
  • btsync::storage_conf_path: btsync configuration directory, default /opt/btsync/.sync
  • btsync::webui_ip: the web ui ip, default 127.0.0.1
  • btsync::webui_port: the web ui port, default 8888
  • btsync::tmp: tmp directory used by install, default /tmp

Installation

puppet

$ puppet module install gsick/btsync

librarian-puppet

Add in your Puppetfile

mod 'gsick/btsync'

and run

$ librarian-puppet update

Tests

Unit tests

$ bundle install
$ rake test

Smoke tests

$ puppet apply tests/init.pp --noop

Authors

Gamaliel Sick

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Licence

The MIT License (MIT)

Copyright (c) 2014 gsick

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.