Giter Club home page Giter Club logo

hiera-files's Introduction

Hiera-Files

Description

Used to generate a one or more file/configuration files from a hiera based data source

Usage

The bin/cfg command can be used to generate the rendered file;

[jest@starfury hiera-files] $ bin/cfg --help

Usage: cfg [options] -h, --help display this usage menu --dry-run perform a dry-run of the configuration generation -c, --config CONFIG an alternative hiera configuration file -v, --verbose switch on verbose mode

  commands : -------------------------------------------------------------
  render (ren)                     render the configuration files from hiera data
  ------------------------------------------------------------------------

  render : description: render the configuration files from hiera data
  ------------------------------------------------------------------------

  -f, --filter FILTER              a filter to the files in the directory (defaults: *.erb)
  -d, --directory DIRECTORY        the directory containing the configuration files (defaults: ./)
  -h, --hiera DIRECTORY            override the directory holding the hiera data (defaults: ./hieradata)
  -b, --base DIRECTORY             write the generated files into this directory (defaults: ./)
  -s, --scope FILE                 a yaml backed file contains the scope
  -e, --entry KEY=VALUE            add a entry into the scope
  -w, --write                      write generated configuration files to disk: config.conf.erb -> config.conf

Example

Assumptions;

  1. We have a collection of configuration files located in ./config/

  2. We have the hiera data located in ./data

  3. We want to write out the rendered files to ./generated

    [jest@starfury hiera-files] $ ./cfg ren -d ./configs/ -h ./data -b ./generated

hiera-files's People

Contributors

gambol99 avatar

Stargazers

Jan Ivar Beddari avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

verlegen

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.