bln-ops-blueprint-library

2.0.0 • Public • Published

bln-ops-blueprint

Description

A NodeJS CLI tool for rendering templates based on provided configuration. Useful when generating K8s YAML configuration files for new environments or clusters.

Requirements

  • NodeJS 8.12 or higher
  • NPM 6.10 or higher

Run npm i to install required dependencies and npm link to add the CLI tool to

Usage

To see available commands:

blueprint -h
Usage: blueprint [options] [command]

Options:
  -V, --version              output the version number
  -h, --help                 output usage information

Commands:
  render [options]           render a yaml service configuration file based on a template
  generate-config [options]  generate a config file with secrets that can be used consumed by blueprint

Render Templates Example

blueprint generate-config --vpc <cluster> --environment <environment> -m template/mapping.js -o ~/temp/blueprint-env.json

blueprint render -i template/<environment-type>.yaml -c ~/temp/blueprint-env.json -o vpc/<cluster>/env/<env>

Squrl encrypted config

blueprint render --encrypted-config vpc/zoo-ki3/env/shared-pre-prod/blueprint.config -i template/implementation.yaml -o vpc/zoo-ki3/env/shared-pre-prod/

Readme

Keywords

none

Package Sidebar

Install

npm i bln-ops-blueprint-library

Weekly Downloads

4

Version

2.0.0

License

ISC

Unpacked Size

20.2 kB

Total Files

29

Last publish

Collaborators

  • bluedrop