Repository navigation
03_Chef Server Configuration
Chef is a configuration automation tool very powerfull abilites of managing multiple servers. In Cloudefigo we use Chef as configurtion manager for all servers. By installing Chef client on our cloud instances and assign a run list we can automaticly configure instance configuration. More specificly we use Chef recipe that implements the encryption of the EBS volume attached to instance by setting the enviroment, packages and runs the encryption utlity.
###Chef server configuration: Chef deploys in various installation modes such as managed Chef (hosted) or standalone server. We have tested Cloudefig on a managed version only but same logic can apply to standalone chef with minor configuration changes. Once you have logged to your Chef console make sure you configured you organization details in the administration tab. In order to configure nodes and management workstation you will need the configuration files (validation.pem,knife.rb,client.rb) so download them to you management workstation. If you are using managed Chef this can be done by using the starter kit option in the administration tab. For more infromation please use Chef Manual
###Chef client configuration The Chef client workstation is used to manage the Chef server configration. For more infromation please read the knife utility guide. Once you have setup the client with the configuration files you can connect to the management server and test it by:
knife client list
Now you create a new cookbook and attach an recipe to it. We have developed a recipe for the encryption that can be downloaded from here: (https://github.com/valtmanir/Cloudefigo/blob/master/Encryption-Recipe-Sample)
Cloudefigo traditioanlly uses Cryptsetup as encryption software. But any other encryption software can be used as well with the required changes to Chef recipe. The encryption recipe perform the following:
- Install the Cryptsetup package
- Install the xfs file system package
- Create a directory (/encrypted) that will be used as mounting point for the encrypted volume.
- create an encrypted volume, format it with XFS and mount it as /encrypted
One the cookbook and recipe file are ready, upload them to Chef server by using:
knife cookbook upload encryption