Chef Recipes for CumuLogic Cloud Services

As recently announced, CumuLogic provides AWS-style, or in some cases, AWS-compatible cloud services for Cloud Providers or enterprises to run applications on any cloud. We believe that Amazon has done a superb job with AWS, making their cloud easy to use for development teams of any size - from a single developer to any large Fortune 500 enterprise. CumuLogic PaaS brings the the same modularity and ease of use of AWS to private clouds based on OpenStack, Apache CloudStack, Citrix CloudPlatform, Eucalyptus and VMware vClouds.

Since Chef (and Puppet) are popular tools with DevOps teams to build application environments, we thought about marrying cloud services with Chef (and Puppet). We customized currently available Chef recipes to provision database instances using CumuLogic Database-as-a-Service (for MySQL and MongoDB), and surprisingly, the recipes were trimmed down to only a couple of lines of code as shown in the comparison below. We started with the Chef recipes available on GitHub (there are several but almost all are similar). Here are three recipes which provision MySQL on AWS instances, backup EBS volume and take a full database snapshot:

Chef Recipe to provision MySQL on AWS

Chef recipe MySQL snapshot

Chef recipe to back up EBS volume

CumuLogic Database-as-a-Service provides fully managed, monitored and scalable MySQL database instances using the HTTP API, and below you’ll find the list of APIs to launch a MySQL instance and initiate a full database snapshot:

  • http://api.cumulogic.com/services/database/create (launches a fully managed MySQL database instance)
  • http://api.cumulogic.com/services/database/dbName/snapshot (takes a snapshot of dbBName instance)

We don’t need an API to backup EBS volume since CumuLogic’s database service always takes automated backups at 24 hour intervals and is provisioned with EBS volumes as data store. So, effectively the above three Chef recipes will shrink to call these APIs to provision CumuLogic Database-as-a-Service:

  • http://api.cumulogic.com/services/database/create
  • http://api.cumulogic.com/services/database/dbName/snapshot

CumuLogic Cloud Services eliminate the need for writing recipes lowering the time and cost to manage them. We’d love to hear your thoughts.

- Rajesh Ramchandani, Founder & VP of Products