Skip to content

ramitsurana/chef-automate-habitat

Repository files navigation

Chef-Automate-Habitat

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

Prerequisites

  • Chef

Design

chef-automate-habitat

Contents

Chef

  • 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]"
  • Habitat

References

License

MIT License