BTSync installation and configuration module
BTSync
Beta version like BTSync
(0.0.6 released)
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"
}
}
btsync::device_name
: name of the device, default allMy Sync Device
btsync::listening_port
: listening port, default all0
btsync::use_upnp
: upnp activated, defaulttrue
btsync::download_limit
: download limit, default no limit0
btsync::upload_limit
: upload limit, default no limit0
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, defaulttrue
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, default127.0.0.1
btsync::webui_port
: the web ui port, default8888
btsync::tmp
: tmp directory used by install, default/tmp
$ puppet module install gsick-btsync
Add in your Puppetfile
mod 'gsick/btsync'
and run
$ librarian-puppet update
$ bundle install
$ rake test
$ puppet apply tests/init.pp --noop
Gamaliel Sick
- 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
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.