bln-ops-blueprint-library
v2.0.0
Published
Helper tool for parsing and rendering templates
Downloads
5
Readme
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/