Code Monkey home page Code Monkey logo

puppet-custom_hooks's Introduction

custom_hooks

Puppet module for Gitlab custom hooks.

Table of Contents

  1. Description
  2. Setup - The basics of getting started with custom_hooks
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

This module uses the puppet Deferred function to create custom hooks on your Gitlab repos when using hashed storage.

Setup

Setup Requirements

This module makes use of the Puppet 6 Deferred function. It is therefore only compatible with Puppet 6+.

This module relies on the to_yaml function of the stdlib module.

This module requires a valid Gitlab access token with read_api access https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html

Beginning with custom_hooks

Add any custom_hook::hook defined type resources to your GitLab gitaly nodes. You can declare you custom hooks like so. Substitute 'content' for 'source' below if you need a template.

custom_hooks::hook { 'foo':
  ensure    => present,
  external_url => 'https://gitlab.auto.saas-n.com',
  hook_type => 'pre-receive',
  project   => 'lemery/test-project',
  repo_path    => '/var/opt/gitlab/git-data/repositories',
  source    => "file:///root/test.sh",
  token        => '<seekrit token>',
  use_ssl      => true,
  verify_ssl   => false,
}

Declare your hook with ensure => absent and they will be removed.

Usage

As above.

Reference

This section is deprecated.

Limitations

Requires Puppet 6+

Development

There are always bugs. Pull requests very welcome.

puppet-custom_hooks's People

Contributors

bt-cj avatar bt-lemery avatar

Watchers

 avatar

Forkers

liger1978 bt-cj

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.