Skip to content

Instantly share code, notes, and snippets.

View edjackson-wf's full-sized avatar

Ed Jackson edjackson-wf

View GitHub Profile
@sethvargo
sethvargo / secret.rb
Created February 1, 2016 21:36
Example Chef extension to extract secrets from HashiCorp's Vault
# Please see the following blog post for more information:
#
# https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html
#
resource_name :vault_secret
property :path, String, name_property: true
property :destination, String
@matthewsullivan-wf
matthewsullivan-wf / python_logs_in_json.py
Last active March 20, 2017 12:57
Format Python logs to output as JSON for easy ingestion into Splunk
# Getting started:
# pip install python-json-logger
# settings.py
import os
LOG_LEVEL = os.getenv('LOG_LEVEL', 'INFO')
LOGGING = {