{"id":21745177,"url":"https://github.com/zuazo/filesystem_resize-cookbook","last_synced_at":"2025-07-20T07:05:24.912Z","repository":{"id":19588333,"uuid":"22838565","full_name":"zuazo/filesystem_resize-cookbook","owner":"zuazo","description":"Chef cookbook to resize the file system automatically when the underlying partition or disk increases its size.","archived":false,"fork":false,"pushed_at":"2015-09-04T06:14:51.000Z","size":264,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T01:43:14.925Z","etag":null,"topics":["chef","cloud","cookbook","devops","disk-increases","disk-space","disks","filesystem","fs","resizes"],"latest_commit_sha":null,"homepage":"https://supermarket.chef.io/cookbooks/filesystem_resize","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zuazo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-11T12:38:28.000Z","updated_at":"2021-02-23T01:06:35.000Z","dependencies_parsed_at":"2022-08-24T13:40:52.051Z","dependency_job_id":null,"html_url":"https://github.com/zuazo/filesystem_resize-cookbook","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zuazo/filesystem_resize-cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Ffilesystem_resize-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Ffilesystem_resize-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Ffilesystem_resize-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Ffilesystem_resize-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuazo","download_url":"https://codeload.github.com/zuazo/filesystem_resize-cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuazo%2Ffilesystem_resize-cookbook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266081241,"owners_count":23873511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chef","cloud","cookbook","devops","disk-increases","disk-space","disks","filesystem","fs","resizes"],"created_at":"2024-11-26T07:13:50.635Z","updated_at":"2025-07-20T07:05:24.893Z","avatar_url":"https://github.com/zuazo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Filesystem Resize Cookbook\n==========================\n[![Cookbook Version](https://img.shields.io/cookbook/v/filesystem_resize.svg?style=flat)](https://supermarket.chef.io/cookbooks/filesystem_resize)\n[![Dependency Status](http://img.shields.io/gemnasium/zuazo/filesystem_resize-cookbook.svg?style=flat)](https://gemnasium.com/zuazo/filesystem_resize-cookbook)\n[![Code Climate](http://img.shields.io/codeclimate/github/zuazo/filesystem_resize-cookbook.svg?style=flat)](https://codeclimate.com/github/zuazo/filesystem_resize-cookbook)\n[![Build Status](http://img.shields.io/travis/zuazo/filesystem_resize-cookbook.svg?style=flat)](https://travis-ci.org/zuazo/filesystem_resize-cookbook)\n\nThis [Chef](https://www.chef.io/) cookbook resizes the file system automatically when the underlying partition or disk increases its size.\n\nIt is mainly oriented to work with cloud or virtual servers where it is common to change the disk size.\n\nRequirements\n============\n\n## Platform Requirements\n\nThis cookbook has been tested on the following platforms:\n\n* Amazon (\u003e= 2012.03)\n* CentOS (\u003e= 6.0)\n* Debian (\u003e= 7.0)\n* Fedora\n* RedHat\n* Ubuntu (\u003e= 12.04)\n\nPlease, [let us know](https://github.com/zuazo/filesystem_resize-cookbook/issues/new?title=I%20have%20used%20it%20successfully%20on%20...) if you use it successfully on any other platform.\n\n## Application Requirements\n\n* Ruby 1.9.3 or higher.\n\nThe other required applications usually come with the operating system:\n\n* `lsblk`, `findmnt` and `losetup`: included inside **[util-linux](http://en.wikipedia.org/wiki/Util-linux) (\u0026ge; 2.19)** package.\n* `pgrep`: included inside [procps-ng](http://sourceforge.net/projects/procps-ng/) package.\n* `e2fsck`, `dumpe2fs` and `resize2fs` for *ext3* and *ext4*: included inside [e2fsprogs](http://e2fsprogs.sourceforge.net/) package.\n* `xfs_info` and `xfs_growfs` for *XFS*: included inside [xfsprogs](http://oss.sgi.com/projects/xfs/) package.\n\nAttributes\n==========\n\n| Parameter                                  | Default | Description                              |\n|:-------------------------------------------|:--------|:-----------------------------------------|\n| `node['filesystem_resize']['compiletime']` | `false` | Resize the file systems at compile time.\n\nRecipes\n=======\n\n## filesystem_resize::default\n\nResizes all mounted file systems.\n\nResources\n=========\n\n## filesystem_resize(device)\n\nResizes a partition.\n\n### filesystem_resize Actions\n\n* `run` (default)\n\n### filesystem_resize Parameters\n\n| Parameter | Default           | Description                              |\n|:----------|:------------------|:-----------------------------------------|\n| device    | *resource name*   | Device full path.\n\n## filesystem_resize_all(name)\n\nResizes all mounted file systems.\n\n### filesystem_resize Actions\n\n* `run` (default)\n\nUsage\n=====\n\n## Including in a Cookbook Recipe\n\nYou can simply include it in a recipe:\n\n```ruby\n# in your recipe\ninclude_recipe 'filesystem_resize'\n```\n\nDon't forget to include the `filesystem_resize` cookbook as a dependency in the metadata:\n\n```ruby\n# metadata.rb\ndepends 'filesystem_resize'\n```\n\n## Including in the Run List\n\nAnother alternative is to include it in your Run List:\n\n```json\n{\n  \"name\": \"app001.example.com\",\n  [...]\n  \"run_list\": [\n    [...]\n    \"recipe[filesystem_resize]\"\n  ]\n}\n```\n\nTesting\n=======\n\nSee [TESTING.md](https://github.com/zuazo/filesystem_resize-cookbook/blob/master/TESTING.md).\n\n## ChefSpec Matchers\n\n### filesystem_resize(device)\n\nHelper method for locating a `filesystem_resize` resource in the collection.\n\n```ruby\nresource = chef_run.filesystem_resize('/dev/sda1')\nexpect(resource).to notify('service[apache2]').to(:restart)\n```\n\n### run_filesystem_resize(device)\n\nAssert that the Chef Run runs `filesystem_resize`.\n\n```ruby\nexpect(chef_run).to run_filesystem_resize('/dev/sda1')\n```\n\n### filesystem_resize_all(name)\n\nHelper method for locating a `filesystem_resize_all` resource in the collection.\n\n```ruby\nresource = chef_run.filesystem_resize_all('default')\nexpect(resource).to notify('service[apache2]').to(:restart)\n```\n\n### run_filesystem_resize_all(name)\n\nAssert that the Chef Run runs `filesystem_resize`.\n\n```ruby\nexpect(chef_run).to run_filesystem_resize_all('default')\n```\n\nContributing\n============\n\nPlease do not hesitate to [open an issue](https://github.com/zuazo/filesystem_resize-cookbook/issues/new) with any questions or problems.\n\nSee [CONTRIBUTING.md](https://github.com/zuazo/filesystem_resize-cookbook/blob/master/CONTRIBUTING.md).\n\nTODO\n====\n\nSee [TODO.md](https://github.com/zuazo/filesystem_resize-cookbook/blob/master/TODO.md).\n\nLicense and Author\n==================\n\n|                      |                                          |\n|:---------------------|:-----------------------------------------|\n| **Author:**          | [Xabier de Zuazo](https://github.com/zuazo) (\u003cxabier@zuazo.org\u003e)\n| **Copyright:**       | Copyright (c) 2015, Xabier de Zuazo\n| **Copyright:**       | Copyright (c) 2014-2015, Onddo Labs, SL.\n| **License:**         | Apache License, Version 2.0\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n    \n        http://www.apache.org/licenses/LICENSE-2.0\n    \n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuazo%2Ffilesystem_resize-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuazo%2Ffilesystem_resize-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuazo%2Ffilesystem_resize-cookbook/lists"}