Sha256: a1fe3a89dac6c9780497439f876e267ee242ac03e3c305262d8b3762b243bfe0

Contents?: true

Size: 1.75 KB

Versions: 24

Compression:

Stored size: 1.75 KB

Contents

# A Short Demo of the Magic of Chef-Vault

##Set up the magic show from a shell on your own workstation

###Put the bunny in the hat

    echo "bunny" > tophat

###Put the hat in the magic show

    export assistant=aug24                   #Change this to your chef id
    export role=magician                     #Change this to the role you need to pass the secret to

    knife vault create magicshow hat \       #Create a hat object in a data bag called magicshow
       --mode client                 \       #Talk to the chef server rather than local
       --file tophat                 \       #Use the hat (file) we put the bunny in
       --search "role:${role}"       \       #Encrypted for all *current* nodes with the magician role
       --admins "${assistant}"               #Encrypted for the assistant

###Check the magic show is on the chef server

    knife data bag list
    knife vault list

###Check the hat is there (and that nobody can see what's in it)

    knife data bag show magicshow hat

###Check you can see what's in it

    knife vault show magicshow hat file-content --mode client

##'Hop' on to a node with a role of 'magician'

###Install required software

    sudo apt-get install ruby-dev --yes
    sudo gem install chef-vault --no-ri --no-rdoc

###Get the bunny back out of the hat!

    sudo chef-shell --client <<EOF
    require 'chef-vault'
    puts ChefVault::Item.load('magicshow', 'hat')['file-content']
    EOF

If you are on a node which is not a magician, an exception will be thrown,
and the node cannot see what is in the hat.

#Finally, do a disappearing act.

###Make the hat disappear...

    knife vault delete magicshow hat --mode client

###Make the entire magic show disappear...

    knife data bag delete magicshow

###Thank you!

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
chef-vault-3.4.0.pre.pre417 DEMO.md
chef-vault-3.3.0 DEMO.md
chef-vault-3.3.0.pre.pre415 DEMO.md
chef-vault-3.3.0.pre.pre416 DEMO.md
chef-vault-3.3.0.pre.pre414 DEMO.md
chef-vault-3.2.0.pre.pre408 DEMO.md
chef-vault-3.2.0.pre.pre407 DEMO.md
chef-vault-3.2.0 DEMO.md
chef-vault-3.1.0 DEMO.md
chef-vault-2.9.2 DEMO.md
chef-vault-3.0.3 DEMO.md
chef-vault-3.0.2 DEMO.md
chef-vault-3.0.1 DEMO.md
chef-vault-3.0.0 DEMO.md
chef-vault-2.9.1 DEMO.md
chef-vault-3.0.0.rc2 DEMO.md
chef-vault-3.0.0.rc1 DEMO.md
chef-vault-2.9.0 DEMO.md
chef-vault-2.8.0 DEMO.md
chef-vault-2.8.0.rc1 DEMO.md