Git Product home page Git Product logo

ansible-gocd-agent's Introduction

Ansible Go Continuous Delivery Agent Role

Description

ansible-gocd-agent is an Ansible role. Use this role to install Go Continuous Delivery Agent.

Provides

  1. Latest Go Continuous Delivery agent with Docker, Maven, Scala, Gradle, Sbt, NodeJS and Ant.

Requires

  1. Ansible 1.7 o higher
  2. Ubuntu Server 14.04
  3. Vagrant (optional)

Usage

Get the code

$ git clone [email protected]:codingbunch/ansible-gocd-agent.git

The code should reside in the roles directory of ansible ( See ansible documentation for more information on roles ), in a folder named gocd-agent.

Create a host file

Following example make ansible aware of the Vagrant box reachable on localhost port 2222. Add a gocd-server group in order to register the agent to a Go server.

$ vi ansible.host

with

[gocd-agent]
127.0.0.1 ansible_ssh_port=2222

[gocd-server]
<server-ip-address>

Create host specific variables

Make the host_vars directory where ansible.host file is located.

$ mkdir host_vars

Create a file in the newly created directory matching your host.

$ cd host_vars
$ vi 127.0.0.1

with

---

timezone: Europe/Madrid

# NTP servers
ntp_server1: ntp0.ox.ac.uk
ntp_server2: ntp1.ox.ac.uk
ntp_server3: ntp2.ox.ac.uk
ntp_server4: ntp3.ox.ac.uk
ntp_server5: 0.uk.pool.ntp.org
ntp_server6: 1.uk.pool.ntp.org
ntp_server7: ntp.ubuntu.com # fallback

# Oracle JDK
jdk_version: 8

# Scala
scala_version: 2.10.4

# Maven
maven_version: 3.2.3

# Ant
ant_version: 1.9.4

# Gradle
gradle_version: 2.2

# SBT
sbt_version: 0.13.6

# NodeJs
nodejs_version: v0.10.33
nodejs_global_packages:
  - nodemon
  - debug
  - foreman

# GOCD
gocd_version: 14.3.0-1186

Run the playbook

First create a playbook including the gocd-agent role, naming it gocd.yml

- name: gocd
  hosts: gocd-agent
  roles:
    - gocd-agent

Use ansible.host as inventory. Run the playbook only for the remote host gocd-agent. Use vagrant as the SSH user to connect to the remote host. -k enables the SSH password prompt.

$ ansible-playbook -k -i ansible.host gocd.yml -u vagrant

ansible-gocd-agent's People

Contributors

aalda avatar agregoris avatar h2non avatar igzdavidsanchez avatar maaaikoool avatar

Watchers

 avatar  avatar

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.