{"id":20444087,"url":"https://github.com/tknerr/chef-tlc-workflow","last_synced_at":"2026-05-29T06:31:13.388Z","repository":{"id":8685186,"uuid":"10345914","full_name":"tknerr/chef-tlc-workflow","owner":"tknerr","description":"Chef Workflow based on the idea of Top-Level Cookbooks","archived":false,"fork":false,"pushed_at":"2013-06-22T00:39:10.000Z","size":268,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-30T08:55:21.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tknerr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-28T21:23:55.000Z","updated_at":"2013-12-12T11:32:15.000Z","dependencies_parsed_at":"2022-09-11T04:21:12.560Z","dependency_job_id":null,"html_url":"https://github.com/tknerr/chef-tlc-workflow","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tknerr/chef-tlc-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fchef-tlc-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fchef-tlc-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fchef-tlc-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fchef-tlc-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tknerr","download_url":"https://codeload.github.com/tknerr/chef-tlc-workflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fchef-tlc-workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33640627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T09:51:10.621Z","updated_at":"2026-05-29T06:31:13.368Z","avatar_url":"https://github.com/tknerr.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chef \"Top-Level Cookbooks\" Workflow\n\n`chef-tlc-workflow` supports an opiniated workflow for working with Chef. It is based on the strict distinction of top-level vs. dependent cookbooks (see below) and it's currently focussed on chef-solo only.\n\nIt provides a [working sample](https://github.com/tknerr/chef-tlc-workflow/tree/master/test/vagrant-1.x-bootstrap) for deployment to esx, ec2 and local from within single `Vagrantfile`.\n\nAlso, it ensures a consistent gem set by declaring all the gems we use in our workflow in its own gemspec, i.e. `chef-tlc-workflow` is the only gem you need to depend on - everything else (like vagrant, mcloud, etc..) comes in as transitive dependencies.\n\n\n## Terminology\n\n* **infrastructure** is a Chef-Repo like structure which describes the nodes that are part of it and which services are to be installed on these nodes via *top-level cookbooks*\n* **top-level cookbooks** are the top-level cookbooks that fully configure a node by combining a set of *dependent cookbooks*, configuring them appropriately and locking them at a specific version.\n* **dependent cookbooks** are the finer-grained, reusable and flexible cookbooks that you typically leverage for building high-level services in terms of *top-level cookbooks*\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'chef-tlc-workflow'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install chef-tlc-workflow\n\n\n## Prerequisites\n\nYou need Vagrant 1.2.x and the following plugins for the [sample Vagrantfile](https://github.com/tknerr/chef-tlc-workflow/tree/master/test/vagrant-1.x-bootstrap/Vagrantfile) to work:\n\n```\nvagrant plugin install vagrant-aws --plugin-version 0.2.2\nvagrant plugin install vagrant-managed-servers --plugin-version 0.1.0\nvagrant plugin install vagrant-omnibus --plugin-version 1.0.2\nvagrant plugin install vagrant-cachier --plugin-version 0.1.0\n```\n\n## Usage\n\n### Deployment to VirtualBox, AWS and Managed ESX Servers\n\nAssuming you are in the `test/vagrant-1.x-bootstrap` directory you need to install the bundle first:  \n```\n$ cd test/vagrant-1.x-bootstrap\n$ bundle install\nFetching gem metadata from http://rubygems.org/..\nFetching gem metadata from https://gems.gemfury.com/psBbdHx94zqZrvxpiVmm/..\nUsing rake (0.9.6)\nUsing Platform (0.4.0)\nUsing ansi (1.4.3)\nUsing archive-tar-minitar (0.5.2)\nUsing multi_json (1.7.6)\n...\n```\n\nThen you need to resolve the [sample-app](https://github.com/tknerr/chef-tlc-workflow/tree/master/test/sample-app) top-level cookbook along with all its dependencies into the `./cookbooks` directory:\n```\n$ rake resolve_sample_app\ncd tmp/tlc/sample-app-0.1.0 \u0026\u0026 berks install --path D:/Repos/_github/chef-tlc-workflow/test/vagrant-1.x-bootstrap/cookbooks/sample-app-0.1.0\nUsing sample-app (0.1.0) at path: 'D:/Repos/_github/chef-tlc-workflow/test/sample-app'\nInstalling apache2 (1.5.0)\nInstalling apt (1.3.2)\n```\n\nSee, the dependencies are now resolved per top-level cookbook (i.e. `sample-app-0.1.0` in this case) separately:\n```\n$ ls -la cookbooks/sample-app-0.1.0\ntotal 12\ndrwxr-xr-x 5 tkn tkn    0 Jun 11 17:44 .\ndrwxr-xr-x 3 tkn tkn    0 Jun 11 17:44 ..\ndrwxr-xr-x 7 tkn tkn 4096 Jun 11 17:44 apache2\ndrwxr-xr-x 6 tkn tkn 4096 Jun 11 17:44 apt\ndrwxr-xr-x 6 tkn tkn 4096 Jun 11 17:44 sample-app\n```\n\nDeploy to VirtualBox:\n\n```\nvagrant up sample-app-vbox \n```\n\nDeploy to AWS via [vagrant-aws]:\n```\nvagrant up sample-app-aws --provider=aws\n```\n\nDeploy to a [managed](https://github.com/tknerr/vagrant-managed-servers) ESX Server:\n```\nvagrant up sample-app-esx --provider=managed\nvagrant provision sample-app-esx\n```\n\n### Single Gemfile Dependency\n\nIt references all gems we need for our Chef workflow, this means that your `Gemfile` basically looks like this:\n\n```ruby\nsource :rubygems\n\ngem \"chef-tlc-workflow\", \"0.2.0\"\n```\n\nThis brings in all the transitive gem dependencies as defined in the `chef-tlc-workflow.gemspec`, e.g. berkshelf, chef, foodcritic, etc...\n\nWhile this is not ideal in terms of keeping the LOAD_PATH as small as possible, it's a tradeoff in favor of convenience and consistency.\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknerr%2Fchef-tlc-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftknerr%2Fchef-tlc-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknerr%2Fchef-tlc-workflow/lists"}