Skip to main content

Utility to create yaml files from a template. Perfect for cloud-config or cloud-init creation.

Project description

Utility to create yaml files from a template. Perfect for cloud-config or cloud-init creation.

Create a yaml file from a template and local files.

This allows you to edit files and track in source control and wrap them in yaml files when needed. Supports compression to minimize yaml size (perfect to squeeze into startup scripts for AWS/EC2 instances).

File graphic by href=" - made by

Getting started

pip install yamlifier

cd testdata

yamlifier VARIABLE1="funny person"

Check out the generated.yaml file in the local folder. Use -f to overwrite excisting file and –help for more information.

Template Syntax


# comment that is preserved

#@ Comments that start with #@ are removed from the output

#@ You can optionally replace something in the yaml file
stuff: @@STUFF@@


See example folder…

yamlifier example.template

Building & Testing using Docker

Check out the git repository and from the yamlifier folder:

docker build -t yamlifier2 -f docker/python2.Dockerfile .

docker run -it -v $PWD:/code yamlifier2 bash


Based on the excellent ruamel.yaml library that allows manipulating yaml files while preserving comments and order.

Logo created with (image CC BY 3.0 license).


This was created by Greenqloud when developing Qstack.

Hope you find it useful!

Greenqloud Dev Team.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yamlifier, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size yamlifier-1.0.0-py2.py3-none-any.whl (6.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size yamlifier-1.0.0.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page