Created
October 15, 2015 16:25
-
-
Save sirosen/c34697ce46cb6835df1f to your computer and use it in GitHub Desktop.
vault-dump.rb.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!<%= 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