Puppet, bittorrent, aria2

Bittorrent package for Linux is getting old (4.4 from RPMForge and 5.x from the source). Therefore, I made the switch to aria2 (command line is “aria2c”), which is much much better and offer a lot more features. Here is what I have for aria2.conf

daemon
enable-dht=true
allow-overwrite=true
seed-ratio=2
max-upload-limit=600K
bt-min-crypto-level=arc4
bt-require-crypto=true

Here is how to run it:

/usr/bin/aria2c –conf-path=aria2.conf abc.torrent >> torrent.log

Here is the old way running bittorrent via puppet:

 

exec { “run-torrents”:
command => ‘nohup launchmany-console –saveas_style 1 –max_upload_rate 600 –display_interval 5 . > torrent.log >/dev/null 2>&1 &’,
cwd => ‘/home/mytorrents’,
unless => ‘ps -e | grep launchmany’,
require => [ Package[‘bittorrent’] , Exec[‘download-torrents’] ]
}

Comments (0)

› No comments yet.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pingbacks (0)

› No pingbacks yet.