Sha256: f4fc76915ecad70d20d5708ede1df29ab54301de7ec58b79c6434d6bbe096ef9

Contents?: true

Size: 1.47 KB

Versions: 35

Compression:

Stored size: 1.47 KB

Contents

# configgin

A simple cli app in Ruby to generate configurations using [BOSH](https://bosh.io) 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)
```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)
```json
{
  "job_name": {
    "base": "/tmp/bosh_spec.json",
    "files": {
      "/tmp/my_template.erb": "/tmp/output_file"
    }
  }
}
```

### Example environment variable template file (env2.conf.yml)
```yaml
---
properties.acceptance_tests.nodes: "((TEST_NODE_COUNT))"
properties.uaa.scim.users: "'((TEST_VAR))'"
```

### Example template (my_template.erb)
```erb
Hello, this is the users property: <%= p("uaa.scim.users") %>
```

### Example of using the tool
```bash
TEST_VAR=foo
configgin \
  -e ~/tmp/env2.conf.yml \
  -j ~/tmp/job_config.json
```

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
configgin-0.20.3 README.md
configgin-0.20.2 README.md
configgin-0.20.1.1 README.md
configgin-0.20.1 README.md
configgin-0.20.0 README.md
configgin-0.19.6 README.md
configgin-0.19.5 README.md
configgin-0.19.4 README.md
configgin-0.19.3 README.md
configgin-0.19.2 README.md
configgin-0.19.1 README.md
configgin-0.19.0 README.md
configgin-0.18.8 README.md
configgin-0.18.7 README.md
configgin-0.18.6 README.md
configgin-0.18.5 README.md
configgin-0.18.4 README.md
configgin-0.18.3 README.md
configgin-0.18.2 README.md
configgin-0.18.1 README.md