Sha256: e315d25079596c5048d3f5e7afb1078c6694bfc4187dd1b9295780e2b459952a
Contents?: true
Size: 362 Bytes
Versions: 37
Compression:
Stored size: 362 Bytes
Contents
#!/bin/bash # Exports existing vaults to a vaults directory for use by test_vaults and recreate_vaults mkdir -p ~/vaults ; for i in `knife data bag list | grep -v -- -`;do echo $i; mkdir -p vaults/$i ; for j in `knife data bag show $i | grep -v '_keys$'`;do echo " $j"; knife vault show $i $j -F json > vaults/$i/$j.json;done;done ; find vaults -empty -delete
Version data entries
37 entries across 37 versions & 1 rubygems