Forge Home

teamcity

Module managing JetBrain's TeamCity installation including DB setup. Feedback *greatly* appreciated.

13,437 downloads

7,373 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.6.1 (latest)
  • 0.6.0
  • 0.5.0
  • 0.4.1
  • 0.4.0
  • 0.3.0
  • 0.2.1
  • 0.2.0
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Feb 10th 2017
This version is compatible with:
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'flypenguin-teamcity', '0.6.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add flypenguin-teamcity
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install flypenguin-teamcity --version 0.6.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

flypenguin/teamcity — version 0.6.1 Feb 10th 2017

puppet-teamcity

A module which installs JetBrains' TeamCity or agent on a server.

The Teamcity installation id done by downloading the files from JetBrains. The agent installation is done by downloading the files directly from the working TeamCity server, so the agent installation will fail as long as the server is not running (precisely: the buildAgent.zip file cannotm be downloaded from the TC server).

It is possible to install multiple agents on one server. Each agent will become its own service and installation directory. It is also possible to just use the agent installation, in case the TeamCity master is installed by other means (docker, for example) and not under the control of this puppet module.

Limitations

Currently only the postgres database can be fully configured. It should be possible though to "install" TeamCity without database configuration, and do it manually afterwards.

Dependencies

The module will install java (using include java and the puppetlabs/java module), then download and install teamcity including the postgres JDBC jar. It will also create a systemd service file.

Tested on

  • ubuntu 15.10

... but should work on any systemd-based distribution, including RedHat, arch and Debian. I greatly appreciate feedback!

Usage

include teamcity::master

Automate database configuration:

class { 'teamcity::params':
    db_type => 'postgresql',
    db_host => 'localhost',
    db_name => 'teamcity',
    db_user => 'teamcity',
    db_pass => 'shabalahaalalahaha',
}

include teamcity::master

Download TeamCity from a locally hosted location:

class { 'teamcity::params':
    teamcity_base_url => 'http://machine.company.com/artifacts/teamcity-903.tgz',
}

include teamcity::master

Add one (or more) agents on the local machine (note that the agent installation will fail until the master is up and running!):

include teamcity::master
teamcity::agent { 'myagent':
    agent_master_url => 'http://teamcity-master:8111'
}
teamcity::agent { 'myotheragent':
    agent_master_url => 'http://teamcity-master:8111'
}

# or alternatively, using a central definition with the params class,
# and don't install teamcity on the same host:

class { 'teamcity::params':
    agent_master_url => 'http://teamcity-master:8111',
}
teamcity::agent { 'myagentone': }
teamcity::agent { 'myagenttwo': }

Also note that the agent names (myagent, myotheragent, ...) must be unique across all agents. So you could do something like "${ipaddress_eth0}.agent0", for example.

Most of the parameters should be pretty self-explanatory, if not you probably should not use them for now.

NEWS

v0.6.1, 2017-02-10

  • fix puppet syntax error in teamcity::db::config

v0.6.0, 2016-11-13

  • server download timeout now configurable (PR #2)

v0.5.0, 2016-06-27

  • added LDAP configuration support
  • made archive provider configurable (puppet/archive, camptocamp/archive)