GithubHelp home page GithubHelp logo

radhouen / vagrant-jenkins-masterslave Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brian-provenzano/vagrant-jenkins-masterslave

0.0 1.0 0.0 3 KB

Simple vagrant setup of a virgin jenkins master/slave setup. Nice for lab testing or whatever

Shell 100.00%

vagrant-jenkins-masterslave's Introduction

Simple Vagrant Master/Slave Initial Setup

This is meant to initialize (2) virgin jenkins servers in a master/slave setup running on the default CentOS7 vagrant boxes. Useful for lab testing, learning or whatever. It will install Jenkins latest, openjdk 1.8, python3/pip, awscli,

Setup Instructions

  1. Modify the VagrantFile if needed
  2. 'vagrant up' to start the boxes and complete initial provisioning
  3. To complete the slave node addition to the master, manually exchange keys
  • On the master ('jenkins') - copy generated public key:
vi /var/lib/jenkins/.ssh/id_rsa.pub
  • On the slave ('jenkins-slave'), paste the key into authorized_keys
vi /var/lib/jenkins-slave/.ssh/authorized_keys

TODO - update this to use ssh copy key, this is hacky!!

NOTE: Both boxes use the default vagrant logins (vagrant/vagrant). Both servers have a 'jenkins' user with no password set. You can sudo/su to the 'jenkins' user as needed.

Further Jenkins master setup for a decent lab (if desired):

  1. gain access via the default admin pwd; finish setup with default plugins
  2. create your admin user
  3. switch to matrix security
  4. give admin user all rights in the matrix
  5. add a restricted dev user
  6. give this restricted user the following permissions: OVERALL: read CREDENTIALS: NONE AGENT: NONE JOB: build,cancel,configure,discover,read, workspace (maybe give create...) RUN: update VIEW: configure, create, read SCM: NONE
  7. Additional Plugins:
    • Amazon EC2 plugin
  8. Attach the slave node (user is 'jenkins' and slave server = 'jenkins-slave')

vagrant-jenkins-masterslave's People

Contributors

brian-provenzano avatar

Watchers

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