chef-client


Creating an encrypted Databag in Chef

Create a random encryption key: openssl rand -base64 512 | tr -d '\r\n' > secret_key  Use this to encrypt a data bag item named “passwords” located in a data bag named “production”: knife data bag create −−editor /usr/bin/vi −−secret-file ./secret_key production passwords This will open an text editor, example JSON data would be: {   "id": […]


Install Chef 10 Client on Debian

The installation is very similar to the server installation, with a few differences. For the server installation have a look here. First of all add the Opscode repository to apt:  echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | tee /etc/apt/sources.list.d/opscode.list lsb_release -cs will correspond to the name if your release (put in "squeeze" or "wheezy" instead for example […]