0.0
No commit activity in last 3 years
No release in over 3 years
Convert a flat BOSH manifest for something into a set of Spiff templates.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 10.0
>= 0
 Project Readme

Make Me Spiffy

Convert a flat BOSH manifest for something into a set of Spiff templates.

This is being developed to help migrate flat BOSH manifests into a standardised Concourse pipeline that could deploy anything.

Usage

Given a BOSH manifest manifest.yml, run the command multiple times to extract data into spiff templates:

makemespiffy manifest.yml name environment/name.yml meta.name

This will take the root level key name from manifest.yml and replace it with (( meta.name )).

name: manifest-name

Becomes:

meta:
  name: (( merge ))

name: (( meta.name ))

It will also create environment/name.yml (if not yet created) and add the extracted value:

meta:
  name: manifest-name

Multiple fields can be extracted into the same target file.

Reference items from lists by their name: field (like spiff itself does):

makemespiffy manifest.yml "jobs.runner_z1.instances" environment/scaling.yml meta.instances.runner_z1

Complex objects can be extracted too:

makemespiffy manifest.yml "networks.cf1.subnets" environment/networking.yml meta.subnets.cf1

Installation

gem install makemespiffy