Code Monkey home page Code Monkey logo

ansible-teamcity-agent's Introduction

TeamCity Agent

Build Status

This role will install and configure TeamCity Agent for TeamCity Server - CI tool from Jetbrains. Feel free to use it along with my TeamCity Server role - matisku.teamcity-server.

Requirements

  1. teamcity-server - TeamCity Server
  2. ansiblebit.oracle-java - Java is required on TeamCity Agent

Role Variables

Variable name Default value Description
teamcity_agent_server_url localhost TeamCity Server URL
teamcity_agent_server_port 8111 TeamCity Server Port
teamcity_agent_install_dir /opt/buildAgent TeamCity Agent Install Dir
teamcity_server_user_name teamcity Teamcity Adminin User
teamcity_server_user_passwd teamcity Teamcity Admin Password

Dependencies

This role depends on java role.

Example Playbook

Example playbook:

- hosts: teamcity-agent
  roles:
    - matisku.teamcity-agent

Author Information

This role was created by Mateusz Trojak for Brainly. We are using this role for company CI automation with easy scaling if needed.

License

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

ansible-teamcity-agent's People

Contributors

acrisci avatar juliusblank avatar matisku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ansible-teamcity-agent's Issues

Support systemd

Hi,

Right now, the role tries to put the service directly into /etc/init but newer distros have mostly moved to systemd which uses systemd unit files instead of init scripts. The role fails in this case.

I think there is a fact called service_mgr which is set to systemd when systemd is used for starting services.

This would require a template for a systemd unit file to be used in place of the init script.

Are you interested in this change?

systemd errors

The current systemd setup in the service gives an error because source cannot be used in ExecStartPre:

teamcityagent-1-instance systemd[1]: /lib/systemd/system/teamcity-agent.service:7: Executable path is not absolute: ". /etc/default/teamcity-agent"

Also, the ExecStartPost errors with:

teamcityagent-1-instance systemd[1]: /lib/systemd/system/teamcity-agent.service:11: Executable path contains special characters: 'while ! tail -5 /opt/buildAgent/logs/teamcity-agent.log | grep "Updating agent parameters o..."

This is on Ubuntu Bionic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.