CharlieC3
9/11/2017 - 3:00 PM

Display JSON output of a databag item

Display JSON output of a databag item

#!/bin/bash

# Generic
knife data bag show [DATA_BAG] [ITEM] -Fj --secret-file [SECRET_FILE]

# ESPN example
knife data bag show encrypted_pdev_users ext08603 -Fj --secret-file ~/.chef/encrypted_data_bag_secret