Giter Site home page Giter Site logo

puppet-dev's Introduction

Tools for Puppet Development

Requirements

  • Python 3

Dependencies

(For reference only, they will be installed during setup into a virtual environment).

  • Pip
    • colored
    • dashtable (which depends on bs4)
    • pyyaml

Installation

  1. export PUP_DEV_BASE=/usr/local/src/puppet-dev
  2. git clone https://github.com/ncsa/puppet-dev.git $PUP_DEV_BASE
  3. $PUP_DEV_BASE/setup.sh
  4. vim $PUP_DEV_BASE/bin/branches.sh
    1. Check / Set values for:
      • REPO_NAMES
      • REFERENCE_NAMES
      • TOPIC_KEYWORD

Usage

All commands:

  • are installed to /usr/local/bin
  • assume per-user puppet repo working directories exist at $HOME/puppet/<repo_name>

branches

Report merge status of topic branches against mainline branches.

R10K creates dynamic environments from multiple repos, where control is a puppet control repo, hiera contains private, secret data, and legacy has local, private, unpublished modules.

  • branches

Sample output: Sample output

repo_status

Show current branch for each repo (control, hiera, legacy).

  • repo_status

Sample output

update_wip_env

Create the puppet environment /etc/puppetlabs/code/environments/wip_<USERNAME> using contents of current working directories for each repo (control, hiera, legacy) for testing live changes without commit-push-deploy cycle.

Note: <USERNAME> must be passed as a parameter on the cmdline

  • root@puppet-master# update_wip_env <USERNAME>

repo_checkout

Checkout the specified branch in each repo (control, hiera, legacy)

For each repo without a matching branch, checkout "production" instead.

  • /usr/local/bin/repo_checkout <TOPIC_BRANCH>

puppet-dev's People

Contributors

andylytical avatar

Watchers

Matthew Turk avatar Luigi Marini avatar James Cloos avatar Kenton McHenry avatar Jong Lee avatar  avatar Jake Rundall avatar  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.