Skip to main content

Buildout recipe to define variables from external commands.

Project description

This recipe can be used to populate a buildout part with variables whose values come from external commands.

Fetch your secrets from the environment when possible, not from managed source code. In our example below, we move them to LastPass, write them to an unmanaged file during the buildout, and read them from the environment during execution.

You can use this approach in order to keep credentials and other sensitive secrets out of the repository.

A short example:

recipe = sixfeetup.recipe.runvars
username = somedewd
password = `lpass show --password`

Now you are free to use ${sekrets:username} and ${sekrets:password} in other parts or templates as part of your buildout.

This is useful for populating environment variables as part of system configuration, for example.

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 sixfeetup.recipe.runvars, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size sixfeetup.recipe.runvars-0.2.0.tar.gz (3.2 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 Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page