I wanted to play around with Chef locally for testing pulling encrypted variables from data bags. Prerequisites ChefDK (includes chef-solo) Encryption Create a Cookbook: chef generate cookbook “firstcookbook” Data Bags Create the encryption key for encrypting data bag items: openssl rand -base64 512 > ~/.chef/encrypted_data_bag_secret Create a local data bag: knife data bag create ssh-private-keys… Read more »
Posts Tagged: chef
Chef Knife List Nodes with IPs
I had to fiddle a bit with this so possibly worth keeping a note of it. I wanted to pull all the node hostnames and ip addresses from chef for use in hostname lookups and ssh config.