Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

transmission (31) Versions 1.0.0

Installs and configures transmission

Policyfile
Berkshelf
Knife
cookbook 'transmission', '= 1.0.0', :supermarket
cookbook 'transmission', '= 1.0.0'
knife supermarket install transmission
knife supermarket download transmission
README
Dependencies
Quality -%

Description

Installs the Transmission BitTorrent Client and includes a transmission_torrent_file LWRP.

Requirements

Platform

Known to work on Debian, Ubuntu, Red Hat and CentOS

Cookbooks

  • build-essential - for compiling the source.
  • openssl - for generating a secure password.

Attributes

  • node["transmission"]["rpc_bind_address"] - Where to listen for RPC connections, default 0.0.0.0.
  • node["transmission"]["rpc_port"] - The port Transmission listens on for remote services, default 9091.
  • node["transmission"]["rpc_username"] - The username required to access remote services, default transmission.
  • node["transmission"]["rpc_password"] - The ssha1 encrypted password, default generated by secure_password.
  • node["transmission"]["home"] - Transmission's home directory, default /var/lib/transmission-daemon.
  • node["transmission"]["config_dir"] - Transmission's config directory, default /var/lib/transmission-daemon/info.
  • node["transmission"]["download_dir"] - Directory to move complete files to, default /var/lib/transmission-daemon/downloads.
  • node["transmission"]["incomplete_dir"] - Directory to keep incomplete files in, default /var/lib/transmission-daemon/incomplete.

The file also contains the following attribute types:

  • platform specific locations and settings.
  • source installation settings

Resource/Provider

transmission_torrent_file

Download a file via the BitTorrent protocol. The usage semantics are like that of the existing file and remote_file resources. This allows very fast downloads for files that are part of large BitTorrent swarms. The Ubuntu 10.04 LTS ISO (around 700MB) downloads in about 50 seconds.

Actions

  • :create: Download a file via the BitTorrent protocol

Attribute Parameters

  • path: name attribute. the path to the file
  • torrent: torrent file of the swarm to join. can either be a url or local file path
  • blocking: should the file be downloaded in a blocking way? If true Chef will download the file in a single Chef run, if false Chef will check for a completed download during each Chef run until the download is complete. default is true.
  • continue_seeding: should the file continue to be seeded to the swarm after download? default is false.
  • owner: The owner for the file
  • group: The group owner of the file (string or id)
  • rpc_host: the address of the Transmission RPC host to connect to. default is localhost.
  • rpc_port: the port of the Transmission RPC host to connect to. default is 9091.
  • rpc_username: the username of the Transmission RPC account. default is transmission.
  • rpc_password: the password of the Transmission RPC account . should probably be node['transmission']['rpc_password'] which by default is a secure password generated for this node.

Example

# download the lucid iso
transmission_torrent_file "/home/ubuntu/ubuntu.iso"  do
  torrent "http://releases.ubuntu.com/lucid/ubuntu-10.04.1-server-i386.iso.torrent"
  owner 'ubuntu'
  group 'ubuntu'
  rpc_username node['transmission']['rpc_username']
  rpc_password node['transmission']['rpc_password']
  action :create
end

# do the same thing but continue seeding after download
transmission_torrent_file "/home/ubuntu/ubuntu.iso"  do
  torrent "http://releases.ubuntu.com/lucid/ubuntu-10.04.1-server-i386.iso.torrent"
  owner 'ubuntu'
  group 'ubuntu'
  continue_seeding true
  rpc_username node['transmission']['rpc_username']
  rpc_password node['transmission']['rpc_password']
  action :create
end

Usage

default

Include default recipe in a run list, to get some Transmission installed. Installs Transmission by package or source depending on the platform.

package

Installs Transmission from packages. This should only be loaded by the default recipe.

source

Installs Transmission from source. This should only be loaded by the default recipe.

License and Author

Author: Seth Chisamore (schisamo@opscode.com)

Copyright 2011, Opscode, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

openssl >= 0.0.0
build-essential >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

No quality metric results found