Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configgin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configgin

  • 0.20.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

configgin

A simple cli app in Ruby to generate configurations using BOSH ERB templates and a BOSH spec, but also using configurations based on environment variables, processed using a set of templates.

Usage

Usage: configgin [options]
    -j, --jobs file                  Job configuration JSON
    -e, --env2conf file              Environment to configuration templates YAML

Examples

Example BOSH spec (bosh_spec.json)

{
    "job": {
        "name": "mysql",
        "templates": [
            {
                "name": "mysql"
            },
            {
                "name": "consul_agent"
            }
        ]
    },
    "networks": {
        "default": {}
    },
    "properties": {
        "acceptance_tests": {
            "include_services": false,
            "include_sso": false,
            "nodes": 2
        }
    }
}  

Example job configuration file (job_config.json)

{
  "job_name": {
    "base": "/tmp/bosh_spec.json",
    "files": {
      "/tmp/my_template.erb": "/tmp/output_file"
    }
  }
}

Example environment variable template file (env2.conf.yml)

---
properties.acceptance_tests.nodes: "((TEST_NODE_COUNT))"
properties.uaa.scim.users: "'((TEST_VAR))'"

Example template (my_template.erb)

Hello, this is the users property: <%= p("uaa.scim.users") %>

Example of using the tool

TEST_VAR=foo
configgin \
  -e ~/tmp/env2.conf.yml \
  -j ~/tmp/job_config.json

FAQs

Package last updated on 07 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc