cookbook 'ts3', '= 0.1.3'
ts3 (6) Versions 0.1.3 Follow0
Provides Chef Resources for installing and managing TeamSpeak 3 servers.
cookbook 'ts3', '= 0.1.3', :supermarket
knife supermarket install ts3
knife supermarket download ts3
TS3
LWRPs for installing and configuring TeamSpeak 3 servers.
Supported Setups
In general, an OS is said to be supported if it is listed in .kitchen.yml
under the platforms section.
Although all supported OS and job control systems should work, we test using the default systems provided by the OS (for example, systemd on Fedora 23).
Usage
Simply call the ts3_install
LWRP to handle installing instances and the ts3_configure
LWRP for configuring pre-existing instances.
Rakefile
The included rakefile has a number of quick-and-dirty tasks defined to make life easier. For example, there are tasks defined to allow one-liners for running tests, style checks, and tagging/deployment.
Check the Rakefile
out for more information. You can also run rake -T
to get a listing and description of what each task does.
Resource Providers
ts3_install
Installs the TeamSpeak 3 server.
Attribute | Required? | Type | Default | Usage |
---|---|---|---|---|
install_dir | true | String | --- | The location on the filesystem to install the TS3 server to. |
version | true | String | --- | The version of the server software to install. |
ts3_configure
Configures a TeamSpeak 3 server.
Attribute | Required? | Type | Default | Usage |
---|---|---|---|---|
user | true | String | teamspeakd | The username of the system account which manages the server. |
install_dir | true | String | --- | The location of the server on the filesystem. |
server_name | false | String | server | The alias for this server. Used to differentiate job control scripts from one another. |
job_control | false | String | manual | The service system used by your hardware. Used to create management scripts automatically. |
Job Control types
The following job control systems are supported by the LWRP:
Type | Description |
---|---|
manual | Don't bother installing any scripts, as the server will be managed manually by the administrator. |
systemd | Install a service for systemd managed by systemctl. |
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
ts3 Cookbook
v 0.1.3
- Added very basic inspec tests (does the server start up? port is ok?)
- Cleaned up chefspec tests
- fixed downloaded file extension so that both sides of the 3.0.12 divide worked as expected (bz2 versus tar.gz)
- added Rakefile tasks to make testing and deployment easier
v0.1.1
- RuboCop cleanup (minus a few lines which are > 120 characters)
- Initial Kitchen setup for ubuntu and fedora systems
- pulled the service startup out of the LWRP (let caller decide when to start services)
v0.1.0
- Inital release with a very basic install and configure LWRP, along with demo recipe showing the process.
Foodcritic Metric
0.1.3 failed this metric
FC033: Missing template: /tmp/cook/eed035dbda03947aa3c93e80/ts3/providers/configure.rb:13
0.1.3 failed this metric