Skip to content

Instantly share code, notes, and snippets.

@sirosen
Created October 15, 2015 16:25
Show Gist options
  • Save sirosen/c34697ce46cb6835df1f to your computer and use it in GitHub Desktop.
Save sirosen/c34697ce46cb6835df1f to your computer and use it in GitHub Desktop.
vault-dump.rb.erb
#!<%= File.join(Chef::Config.embedded_dir, 'bin', 'ruby') %>
require 'chef'
require 'chef-vault'
Chef::Config.from_file('/etc/chef/client.rb')
puts ChefVault::Item.load(ARGV[0], ARGV[1]).to_json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment