chef-automate-habitat

Findings and samples on habitat


Project maintained by ramitsurana Hosted on GitHub Pages — Theme by mattgraham

Chef-Automate-Habitat

Setting up your complete solution on cloud premises & local using Chef and Habitat

Prerequisites

Design

chef-automate-habitat

Contents

Chef

Install Knife

$ gem install knife-ec2

Create a role

$ knife role create nodejs
{
  "name": "nodejs",
  "description": "",
  "json_class": "Chef::Role",
  "default_attributes": {
  },
  "override_attributes": {
    "nodejs": {
      "version": "0.4.11",
      "npm": "1.0.30"
    }
  },
  "chef_type": "role",
  "run_list": [
    "recipe[apt]",
    "recipe[build-essential]",
    "recipe[git]",
    "recipe[nodejs]",
    "recipe[nodejs::npm]"
  ]
}

Create your instance

$ knife ec2 server create -x ubuntu -r "role[nodejs]"

References

License

MIT License