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

Version Path
cloud-mu-3.5.1 extras/vault_tools/export_vaults.sh
cloud-mu-3.5.0 extras/vault_tools/export_vaults.sh
cloud-mu-3.4.0 extras/vault_tools/export_vaults.sh
cloud-mu-3.3.2 extras/vault_tools/export_vaults.sh
cloud-mu-3.3.1 extras/vault_tools/export_vaults.sh
cloud-mu-3.3.0 extras/vault_tools/export_vaults.sh
cloud-mu-3.2.0 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.6 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.5 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.4 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.3 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.2 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.2beta2 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.1 extras/vault_tools/export_vaults.sh
cloud-mu-3.1.0 extras/vault_tools/export_vaults.sh
cloud-mu-3.0.2 extras/vault_tools/export_vaults.sh
cloud-mu-3.0.1 extras/vault_tools/export_vaults.sh
cloud-mu-3.0.0 extras/vault_tools/export_vaults.sh
cloud-mu-3.0.0beta extras/vault_tools/export_vaults.sh
cloud-mu-2.0.4 extras/vault_tools/export_vaults.sh