This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Replace env files with etcd configurations.

Project Description

Materialize is a simple toolkit for replacing env files with etcd configurations.

Step #1: Manually (or via a docker environment setting from the docker command line DO NOT BAKE IN!)

export etchost={host of etcd server} export etccluster{dev/prod/uat}

Step #2: Edit the .env file so anything that has to go into shared config (between apps on a cluster) has #common after it. Then type the following;-

./materialize dematerialize {cluster} {appname}

With the .env file now scanned into etcd the app is ready to go.

Two options

  1. Reconstruct .env from the command line in the container. The cluster is gleaned from the environment variable.

    ./materialize magic {appname}

  2. Insert the following into manage.py in the django.

    import materializer materializer.magic_rematerializer()

And let the magic take hold.

Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
materialize-0.1.1.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source Jul 1, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting