{"id":19249316,"url":"https://github.com/sous-chefs/drbd","last_synced_at":"2025-04-21T12:31:47.681Z","repository":{"id":2725880,"uuid":"3720806","full_name":"sous-chefs/drbd","owner":"sous-chefs","description":"Development repository for the drbd cookbook","archived":false,"fork":false,"pushed_at":"2024-02-01T00:53:07.000Z","size":146,"stargazers_count":19,"open_issues_count":4,"forks_count":27,"subscribers_count":47,"default_branch":"main","last_synced_at":"2024-04-14T04:18:52.647Z","etag":null,"topics":["chef","chef-cookbook","chef-resource","drbd","hacktoberfest","managed-by-terraform"],"latest_commit_sha":null,"homepage":"https://supermarket.chef.io/cookbooks/drbd","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/sous-chefs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"open_collective":"sous-chefs"}},"created_at":"2012-03-14T18:30:13.000Z","updated_at":"2023-11-28T06:02:08.000Z","dependencies_parsed_at":"2023-09-24T07:15:55.725Z","dependency_job_id":"d599c429-c5ec-4604-92b3-c5c71bfeb23b","html_url":"https://github.com/sous-chefs/drbd","commit_stats":{"total_commits":207,"total_committers":23,"mean_commits":9.0,"dds":0.8019323671497585,"last_synced_commit":"1420af017f56bac3b05a4de8b53d1cc50af781ea"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fdrbd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fdrbd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fdrbd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sous-chefs%2Fdrbd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sous-chefs","download_url":"https://codeload.github.com/sous-chefs/drbd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223265159,"owners_count":17116306,"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","chef-cookbook","chef-resource","drbd","hacktoberfest","managed-by-terraform"],"created_at":"2024-11-09T18:13:42.243Z","updated_at":"2024-11-09T18:13:42.943Z","avatar_url":"https://github.com/sous-chefs.png","language":"Ruby","funding_links":["https://opencollective.com/sous-chefs"],"categories":[],"sub_categories":[],"readme":"# drbd Cookbook\n\n[![Cookbook Version](https://img.shields.io/cookbook/v/drbd.svg)](https://supermarket.chef.io/cookbooks/drbd)\n[![CI State](https://github.com/sous-chefs/drbd/workflows/ci/badge.svg)](https://github.com/sous-chefs/drbd/actions?query=workflow%3Aci)\n[![OpenCollective](https://opencollective.com/sous-chefs/backers/badge.svg)](#backers)\n[![OpenCollective](https://opencollective.com/sous-chefs/sponsors/badge.svg)](#sponsors)\n[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)\n\nInstalls and configures the Distributed Replicated Block Device (DRBD) service for mirroring block devices between a pair of hosts. Right now it simply works in pairs, multiple hosts could be supported with a few small changes.\n\nThe `drbd` cookbook does not partition drives. It will format partitions given a filesystem type, but it does not explicitly depend on the `xfs` cookbook if you want that type of filesystem, but you can put it in your run list and set the node['drbd']['fs_type'] to 'xfs' or 'ext4' or whatever.\n\n## Maintainers\n\nThis cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit [sous-chefs.org](https://sous-chefs.org/) or come chat with us on the Chef Community Slack in [#sous-chefs](https://chefcommunity.slack.com/messages/C2V7B88SF).\n\n## Requirements\n\n### Platforms\n\n- Ubuntu\n- CentOS\n\n### Chef\n\n- Chef 12.15+\n\n### Cookbooks\n\n- yum-elrepo\n\n## Recipes\n\n### default\n\nInstalls drbd but does no configuration. If another version of drbd is desired, set the `node['drbd']['packages']` attribute.\n\nFor example, to install drdb 8.4 on CentOS you might set `node.override['drbd']['packages'] = %w(drbd84-utils kmod-drbd84)`.\n\n## pair\n\nGiven a filesystem and a partner host, configures block replication between the hosts. The master will claim the primary, format the filesystem and mount the partition. The slave will simply mirror without mounting. **It currently takes 2 chef-client runs to ensure the pair is synced properly.**\n\n## Attributes\n\nThe required attributes are\n\n- `node['drbd']['remote_host']` - Remote host to pair with.\n- `node['drbd']['remote_ip']` - Remote host to pair with.\n- `node['drbd']['local_ip']` - Remote host to pair with.\n- `node['drbd']['disk']` - Disk partition to mirror.\n- `node['drbd']['mount']` - Mount point to mirror.\n- `node['drbd']['fs_type']` - Disk format for the mirrored disk, defaults to `ext3`.\n- `node['drbd']['master']` - Whether this node is master between the pair, defaults to `false`.\n\nThe optional attributes are\n\n- `node['drbd']['packages']` - What packages are needed to install drbd, defaults to `drbd_packages` helper.\n\n## Roles\n\nThere are a pair of example roles `drbd-pair.rb` and `drbd-pair-master.rb` with the cookbook source.\n\n## Contributors\n\nThis project exists thanks to all the people who [contribute.](https://opencollective.com/sous-chefs/contributors.svg?width=890\u0026button=false)\n\n### Backers\n\nThank you to all our backers!\n\n![https://opencollective.com/sous-chefs#backers](https://opencollective.com/sous-chefs/backers.svg?width=600\u0026avatarHeight=40)\n\n### Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website.\n\n![https://opencollective.com/sous-chefs/sponsor/0/website](https://opencollective.com/sous-chefs/sponsor/0/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/1/website](https://opencollective.com/sous-chefs/sponsor/1/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/2/website](https://opencollective.com/sous-chefs/sponsor/2/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/3/website](https://opencollective.com/sous-chefs/sponsor/3/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/4/website](https://opencollective.com/sous-chefs/sponsor/4/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/5/website](https://opencollective.com/sous-chefs/sponsor/5/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/6/website](https://opencollective.com/sous-chefs/sponsor/6/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/7/website](https://opencollective.com/sous-chefs/sponsor/7/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/8/website](https://opencollective.com/sous-chefs/sponsor/8/avatar.svg?avatarHeight=100)\n![https://opencollective.com/sous-chefs/sponsor/9/website](https://opencollective.com/sous-chefs/sponsor/9/avatar.svg?avatarHeight=100)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsous-chefs%2Fdrbd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsous-chefs%2Fdrbd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsous-chefs%2Fdrbd/lists"}