GithubHelp home page GithubHelp logo

limiteddenial / jenkins_windows_agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ktreese/jenkins_windows_agent

0.0 0.0 0.0 27 KB

Module for deploying a Jenkins Agent for Windows via the swarm jar

Ruby 17.06% Puppet 82.94%

jenkins_windows_agent's Introduction

jenkins_windows_agent

Table of Contents

  1. Overview
  2. Module Dependencies - What are the dependencies
  3. Module Description - What the module does and why it is useful
  4. Classifcation Setup - The basics of getting started with jenkins_windows_agent

Overview

This module will deploy the Jenkins Agent on Windows systems via the swarm jar and run it as a windows service using NSSM.

Module Dependencies

Please review the Dependencies to ensure you have all that is required in order for this module to function properly.

Module Description

The Windows Jenkins Agent will be deployed with the following defaults:

  • swarm-client-3.3.jar (JENKINS-42138 indicates this jar contains the dependencies)
  • mode: exclusive
  • executors: 8
  • labels: windows
  • Agent Home: C:\opt\ci\jenkins
  • Agent Workspace: C:\opt\ci\jenkins\workspace
  • Jenkins Master: http://myjenkinsmaster.localhost:8080
  • java: latest choco jdk8 package
  • disableSslVerification swarm option enabled (override via hiera to undef if not needed)
  • service account: LocalSystem

Puppet will create a windows service Jenkins_Agent and set it to run as the LocalSystem account

Any of the above defaults can be overridden via hiera as described in Setup Requirements.

If overriding the service account, the credentials for that user may be stored in an encrypted format in hiera via eyaml.

Classification Setup

This module includes a single class:

include jenkins_windows_agent

At a minimum, the jenkins_master_url, jenkins_master_user, and jenkins_master_pass variables should be overridden via hiera, Puppet Console, or inside of a resource like declaration:

class { 'jenkins_windows_agent':
  jenkins_master_url  => 'http://your_jenkins_master_url:8080',
  jenkins_master_user => 'your_jenkins_master_user',
  jenkins_master_pass => 'your_jenkins_master_pass',
}

What the jenkins_agent module affects

List of things that the module will alter:

 - Installs jdk8
 - Installs NSSM - the Non-Sucking Service Manager
 - Creates C:/tmp; C:/opt/ci/jenkins; C:/opt/ci/jenkins/workspace
 - Creates Jenkins_Agent service to run as LocalSystem via NSSM
 - Sets arguments / parameters for Jenkins_Agent service via NSSM
 - Manages Jenkins_Agent service

Setup Requirements

Please review the Module Dependencies section.

Override default values in the Puppet Console, or namespace the key/value pairs appropriately in the desired yaml hieradata file. At minimum, you'll need to override the jenkins_master_url, jenkins_master_user, and jenkins_master_pass variables to your environments specifications.

For example, to override these variables via hiera:

jenkins_windows_agent::jenkins_master_url: http://your_jenkins_master_url:8080
jenkins_windows_agent::jenkins_master_user: jenkins
jenkins_windows_agent::jenkins_master_pass: mypassword

jenkins_windows_agent's People

Contributors

wwtreese avatar ktreese avatar limiteddenial avatar mansong1 avatar kenmaglio 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.