matisku.teamcity-server

TeamCity Server

Build Status

This role installs and sets up TeamCity Server, a continuous integration tool from JetBrains. I made this role to automate the TeamCity setup process.

What This Role Does:

  1. Installs TeamCity.
  2. Configures the database connection (local/mysql).
  3. Creates a default admin user named teamcity.
  4. Accepts the license agreement.

In the end, this role sets up a fully functional TeamCity Server. You can also use it with my TeamCity Agent role - matisku.teamcity-agent.

Compatibility

This role works with Ubuntu 14.04 and Ubuntu 16.04.

Requirements

  1. ansiblebit.oracle-java - Java is required for TeamCity Server.

Role Variables

Variable Name Default Value Description
teamcity_server_version 2017.2.3 Version of TeamCity to install
teamcity_server_sha256 29d163f76a9baf1d630d5275765c72b2a085f7537945d7e7b263b54b1ccece47 SHA256 checksum for the package
teamcity_server_su_user teamcity Admin username for TeamCity
teamcity_server_su_password teamcity Admin password for TeamCity
teamcity_server_install_dir /opt Directory to install TeamCity
teamcity_server_dir {{ teamcity_server_install_dir }}/TeamCity Installation directory for TeamCity
teamcity_server_data_dir {{ teamcity_server_dir }}/BuildServer Directory for data/config/plugins
teamcity_server_plugins_dir {{ teamcity_server_data_dir }}/plugins Directory for TeamCity plugins
teamcity_server_license_keys [] List of TeamCity Licenses
teamcity_server_mysql_connector_version 5.1.40 MySQL connector version
teamcity_server_mysql_connector_dir /opt/mysql-connector Directory for MySQL connector
teamcity_server_mysql_db_user teamcity MySQL username for TeamCity
teamcity_server_mysql_db_password teamcity MySQL password for TeamCity
teamcity_server_mysql_db_name teamcity MySQL database name
teamcity_server_db_type local Database type: local or mysql
teamcity_server_mysql_database_url localhost MySQL database URL
teamcity_server_mysql_database_port 3306 MySQL database port
teamcity_server_mysql_jdbc_dir {{ teamcity_server_data_dir }}/lib/jdbc Location for MySQL JDBC driver

Dependencies

This role needs the java role to work.

Example Playbook

Here is an example playbook:

- hosts: teamcity-servers
  become: yes
  roles:
    - matisku.teamcity-server

Author Information

This role was created by Mateusz Trojak for Brainly. We use this for automating CI at our company with a simple failover process.

License

Copyright © 2016-2018 Mateusz Trojak. See LICENSE for details.

Informazioni sul progetto

Installs and automatically configure TeamCity Server.

Installa
ansible-galaxy install matisku.teamcity-server
Licenza
mit
Download
338
Proprietario