GithubHelp home page GithubHelp logo

isabella232 / jenkins-formula Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netmanagers/jenkins-formula

0.0 0.0 0.0 68 KB

Home Page: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License: Other

Ruby 6.25% HTML 11.29% SaltStack 82.47%

jenkins-formula's Introduction

jenkins

Available states

jenkins

Install jenkins from the source package repositories and start it up.

jenkins.nginx

Add a jenkins nginx entry. It depends on the nginx formula being installed and requires manual inclusion nginx and jenkins states in your top.sls to function, in this order: jenkins, nginx, jenkins.nginx.

jenkins.plugins

Install listed jenkins plugins.

jenkins.jobs

Automatically create jenkins jobs and update them when they change. Allows you to specify a list of jobs that already exist on the server.

Assumes you have some way to copy your config to the server, e.g.

{% for job, path in salt['pillar.get']('jenkins:lookup:jobs:installed', {}).items() %}
jenkins-host_job_definition_{{ job }}:
  file.managed:
    - name: {{ path }}
    - source: salt://path/to/jenkins/jobs/{{ job }}.xml
    - template: jinja

{% endfor %}

Pillar customizations:

jenkins:
  lookup:
    # Base
    port: 80
    home: /usr/local/jenkins
    user: jenkins
    group: www-data
    server_name: ci.example.com
    # Nginx
    symlink_vhost: False
    nginx_user: nginx
    nginx_group: nginx
    nginx_vhost_path: /etc/nginx/sites-available
    # Plugins
    plugins:
      installed:
        - git
        - rebuild
    # Jobs
    jobs:
      installed:
        JobName: /var/lib/jenkins/jobDefs/jobFile.xml

jenkins-formula's People

Contributors

abconway avatar aboe76 avatar ara4sh avatar auser avatar bebehei avatar bersace avatar blast-hardcheese avatar cachedout avatar cp-richard avatar cvrebert avatar dosercz avatar erisds avatar gravyboat avatar gregmsthompson avatar gtmanfred avatar henrycook avatar javierbertoli avatar joe-niland avatar jpic avatar myoung34 avatar nijilraj avatar nmadhok avatar puneetk avatar sroegner avatar stp-ip avatar techhat avatar thatch45 avatar thatnerdjosh avatar utahdave avatar whiteinge 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.