Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 2.44 KB

README.md

File metadata and controls

57 lines (40 loc) · 2.44 KB

teamcity cookbook

Build Status

Downloads, installs and configures TeamCity. It also installs PostgreSQL and uses it as the backend database for TeamCity.

Platforms

  • Debian
  • Ubuntu

Tested on:

  • Ubuntu 13.04

Recipes

  • teamcity::default - installs PostgreSQL, TeamCity server and agent
  • teamcity::monit - installs monit and configures it to watch server and agent

Usage

Add recipe[teamcity] to your runlist. Optionally add recipe[teamcity::monit] if you'd like TeamCity to be monitored by monit.

Configuration

You should set at least node[:postgresql][:password][:postgres] and node[:postgresql][:password][:teamcity] to avoid unsafe defaults.

  • node[:teamcity][:version] - TeamCity version which will be downloaded (default: 8.1.1)
  • node[:teamcity][:host] - Server hostname (default: localhost)
  • node[:teamcity][:port] - Server port (default: 8111)
  • node[:teamcity][:user] - System username under which TeamCity will be running (default: teamcity)
  • node[:teamcity][:path] - Installation path (default: /usr/local/teamcity)
  • node[:teamcity][:data_path] - Data path (default: /var/teamcity)
  • node[:teamcity][:agent][:name] - Agent's name (default: Default agent)
  • node[:teamcity][:database][:name] - PostgreSQL database name (default: teamcity)
  • node[:teamcity][:database][:username] - PostgreSQL username (default: teamcity)
  • node[:postgresql][:password][:postgres] - PostgreSQL password for 'postgres' user
  • node[:postgresql][:password][:teamcity] - PostgreSQL password for 'teamcity' user

teamcity_plugin resource

It's possible to download and install custom plugin by utilizing teamcity_plugin LWRP:

teamcity_plugin 'http://teamcity.jetbrains.com/guestAuth/repository/download/bt398/lastest.lastSuccessful/teamcity.github.zip'

It will download and move teamcity.github.zip to the plugins directory under node[:teamcity][:data_path].

Testing

Run test kitchen integration suite:

bundle exec kitchen test

License & Author

Andrey Chernih [email protected]

Apache 2.0