Giter Club home page Giter Club logo

ansible-jenkinsmaster_jenkinsslave's Introduction

Documentation

Quickstart

Install ansible on the your host Install python on the servers
Install required rolles:

$ ansible-galaxy install jdauphant.nginx
$ ansible-galaxy install jdauphant.ssl-certs
$ git clone https://github.com/wunzeco/ansible-java && mv ansible-java ~/.ansible/roles/wunzeco.java
$ git clone https://github.com/wunzeco/ansible-jenkins && mv ansible-jenkins ~/.ansible/roles/wunzeco.jenkins

Clone this repository in your directory:

$ git clone https://github.com/zedit/ansible-jenkinsmaster_jenkinsslave 
$ cd ansible-jenkinsmaster_jenkinsslave

Create directories ./files/ssl/
Put certificates in the directory ./files/ssl/
Specify host addresses in the file /etc/ansible/hosts
In the playbook play.yaml you can override varibales according to the table, if it's needed
Ansible hosts file placed in /etc/ansible/
Execute command

$ ansible-playbook play.yaml -b --extra-vars "ansible_sudo_pass=yourPassword"

Example hosts file:

[jenkinsmaster]
192.168.122.123 ansible_ssh_port=22 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=~/.ssh/id_rsa

[jenkinslave]
192.168.122.77 ansible_ssh_port=22 ansible_ssh_user=ubuntu ansible_ssh_private_key_file=~/.ssh/id_rsa

Playbook variables

Variable name Variables description Default Value
ssl_certs_local_privkey_path path to your privite key 'files/ssl/web.key'
ssl_certs_local_cert_path path to your privite certificate 'files/ssl/web.crt'
ssl_certs_common_name certificate common name 'web'
ssl_certs_path_owner owner of the directory 'root'
ssl_certs_path_group group 'root'
ssl_certs_path directory on the server, where will be placed certificates '/etc/ssl/web'
ssl_certs_privkey_path path to private ket on the server '/etc/ssl/web/web.key'
ssl_certs_cert_path path to certificate on the server '/etc/ssl/web/web.crt'

ansible-jenkinsmaster_jenkinsslave's People

Contributors

zedit avatar

Watchers

James Cloos 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.