Coder Social home page Coder Social logo

dalen / spikor Goto Github PK

View Code? Open in Web Editor NEW
2.0 6.0 1.0 88 KB

Spikor is a node terminus for Puppet that contructs a dynamic node specific environment and is made for a workflow where git each branch corresponds to a Puppet environment.

Ruby 100.00%

spikor's Introduction

About Spikor

Spikor is a node terminus for Puppet that contructs a dynamic node specific environment and is made for a workflow where git each branch corresponds to a Puppet environment. It delegates the actual node classification to another node terminus like the exec one for example so it doesn't do any node classification of its own.

What it needs

Spikor requires a (bare) git repository, which can contain hiera data and also can contain some modules which should be present on all hosts. This git repo needs to be readable and writeable by the puppet user and the location set in the spikor configuration file.

Spikor will not automatically fetch this git repository, you will need to configure some replication mechanism outside of spikor to keep it up to date.

How it works

When a node requests a catalog or node object Spikor will consult the configured node terminus (in the spikor configuration file) for classes, parameters and environment of the node.

Then it will go on and checkout the branch of the git repository that corresponds to the environment that was requested into a node specific path (certname plus a timestamp).

Depending on if you have set it to lookup parameters from hiera or from the node terminus it will get either the modules key from hiera or the modules parameter from the node terminus. Then it will use the puppet module tool to install the specified modules into the node specific environment that it just created.

It will then return the new environment name to the agent which will restart with a new catalog request against the new environment. This time spikor will see that the environment directory already exists and will just let the node run against it.

Configuration

The configuration file for spikor is spikor.yaml in the puppet confdir, typically /etc/puppet/spikor.yaml.

repository: The path to the bare git repository. Defaults to $confdir/repositories/puppet.git

environmentpath: The path where spikor should create the environment directories. Defaults to $confdir/environments

moduledir: The directory inside the environment where modules should be installed. Defaults to modules

git: The path to the git command spikor should use. Defaults to git

node_terminus: The node terminus to proxy to. Defaults to exec

module_config: Where spikor should get modules to install from, should be either hiera or node_terminus. Defaults to hiera

spikor's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rmnwolf

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.