Downloads, installs and configures TeamCity. It also installs PostgreSQL and uses it as the backend database for TeamCity.
- Debian
- Ubuntu
Tested on:
- Ubuntu 13.04
teamcity::default
- installs PostgreSQL, TeamCity server and agentteamcity::monit
- installs monit and configures it to watch server and agent
Add recipe[teamcity]
to your runlist. Optionally add recipe[teamcity::monit]
if you'd like TeamCity to be monitored by monit.
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' usernode[:postgresql][:password][:teamcity]
- PostgreSQL password for 'teamcity' user
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]
.
Run test kitchen integration suite:
bundle exec kitchen test
Andrey Chernih [email protected]