GithubHelp home page GithubHelp logo

frankz / puppet-icinga_build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from icinga/puppet-icinga_build

0.0 1.0 0.0 210 KB

Puppet module for Icinga build jobs

License: GNU General Public License v2.0

Ruby 15.16% Shell 26.84% C 0.16% Puppet 11.03% HTML 46.82%

puppet-icinga_build's Introduction

Icinga Build Puppet module

Build Status

Managing the Icinga Build system, taking care of:

  • Packaging jobs for Debian, RedHat, SuSE (and alike)
  • Build jobs for specific OSes (Windows, ...)

We currently build on Jenkins, with Jenkins slaves running in Docker.

Also see icinga-build-vagrant.

Using the module

To set up the Jenkins, and our build scripts, just use:

include ::icinga_build

The module base takes care about:

  • Jenkins + CLI
  • Icinga specific scripts (legacy)
  • SSH private key of Jenkins

With Hiera hashes the following resources can be created:

  • icinga_build::folder - Wrapper for Folder Jobs
  • icinga_build::job - Wrapper for jenkins::job
  • icinga_build::pipeline
  • jenkins::plugin
  • jenkins::docker_job

Build jobs and configuration

Folder

icinga_build::folder { 'docker':
  description => 'My fancy folder',
}

Job

This extends the default jenkins::job with templates and custom parameters.

icinga_build::job { 'icinga2-test':
  template => 'icinga_build/jobs/icinga2-test.sh.erb',
  params   => {
    test => true,
  },
  folder   => 'test',
}

Plugins

Plugins for Jenkins can be installed via jenkins::plugin in hiera.

Problem will be updates, since you might not only update a single plugin, add a dependency, and whatnot.

There is a helper script /var/lib/jenkins/plugins-yaml.sh, which will print out a list of all installed plugins and their respective version. The list is YAML, ready to be put in hiera.

So plugins can be installed / updated via Jenkins WebUI, and the list in Puppet can be updated accordingly.

Pipeline

Is a specific define type to support our Package build pipelines.

This takes care about:

  • Creates a folder for the pipeline
  • Deb jobs: source, binary, test and publish
  • RPM jobs in the same way

Here is a brief example:

icinga_build::pipeline { 'icinga2-snapshot':
  control_repo   => 'https://github.com/Icinga/icinga-packaging.git',
  control_branch => 'snapshot',
  matrix_deb     => {
    'debian-jessie' => {},
    'debian-wheezy' => {},
    'ubuntu-xenial' => {
      use => 'ubuntu',
    },
    'ubuntu-trusty' => {
      use => 'ubuntu',
    },
  },
  matrix_rpm => {
    'centos-6' => {},
    'centos-7' => {
      arch     => ['x86_64'],
    },
  },
}

Docker Job

TODO

License

Copyright (C) 2012-2017 Icinga Development Team <[email protected]>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

puppet-icinga_build's People

Contributors

b0e avatar bobapple avatar crunsher avatar lazyfrosch avatar

Watchers

 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.