{"id":20677865,"url":"https://github.com/clivern/consul-cookbook","last_synced_at":"2025-10-25T10:40:02.238Z","repository":{"id":86321533,"uuid":"133267764","full_name":"Clivern/Consul-Cookbook","owner":"Clivern","description":"🐜Install and Manage Consul With Chef.","archived":false,"fork":false,"pushed_at":"2023-12-15T05:10:21.000Z","size":10,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T14:56:10.334Z","etag":null,"topics":["chef","chef-cookbook","chef-server","consul","consul-cookbook","service-discovery"],"latest_commit_sha":null,"homepage":"https://github.com/Clivern/Monk","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/Clivern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-05-13T19:27:52.000Z","updated_at":"2018-05-20T17:20:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d7073ed-be60-4519-9436-0b0c3498838a","html_url":"https://github.com/Clivern/Consul-Cookbook","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Clivern/Consul-Cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FConsul-Cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FConsul-Cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FConsul-Cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FConsul-Cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clivern","download_url":"https://codeload.github.com/Clivern/Consul-Cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FConsul-Cookbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280943421,"owners_count":26417747,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"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":["chef","chef-cookbook","chef-server","consul","consul-cookbook","service-discovery"],"created_at":"2024-11-16T21:17:22.327Z","updated_at":"2025-10-25T10:40:02.203Z","avatar_url":"https://github.com/Clivern.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Consul-Cookbook\n==============\n\nA Chef Cookbook To Install and Manage [Consul](https://www.consul.io/).\n\nUsage\n-----\n\n1. Add the following recipes to your node run list.\n\n```bash\n{\n    \"run_list\": [\n        \"recipe[clivern-consul::default]\"\n    ]\n}\n```\n\n2. The configure the node whether it is a leader, server or client. Let's imagine we have three servers:\n\n- Leader FQDN `x.x.x.x`.\n- Client FQDN `y.y.y.y`.\n- Server FQDN `z.z.z.z`.\n\nFirst The Leader Node should be like the following:\n\n```bash\n{\n    \"name\": \"leader-node\",\n    \"chef_environment\": \"_default\",\n    \"normal\": {\n        \"tags\": [\n\n        ],\n        \"consul\": {\n            \"node_fqdn\": \"x.x.x.x\",\n            \"leader_fqdn\": \"x.x.x.x\",\n            \"type\": \"leader\",\n            \"datacenter\": \"US-01\"\n        }\n    },\n    \"policy_name\": null,\n    \"policy_group\": null,\n    \"run_list\": [\n        \"recipe[clivern-consul::default]\"\n    ]\n}\n```\n\nThen The Server(s) Node should be like the following:\n\n```bash\n{\n    \"name\": \"server-node-01\",\n    \"chef_environment\": \"_default\",\n    \"normal\": {\n        \"tags\": [\n\n        ],\n        \"consul\": {\n            \"node_fqdn\": \"z.z.z.z\",\n            \"leader_fqdn\": \"x.x.x.x\",\n            \"type\": \"server\",\n            \"datacenter\": \"US-01\"\n        }\n    },\n    \"policy_name\": null,\n    \"policy_group\": null,\n    \"run_list\": [\n        \"recipe[clivern-consul::default]\"\n    ]\n}\n```\n\nThen The Client(s) Node should be like the following:\n\n```bash\n{\n    \"name\": \"client-node-01\",\n    \"chef_environment\": \"_default\",\n    \"normal\": {\n        \"tags\": [\n\n        ],\n        \"consul\": {\n            \"node_fqdn\": \"y.y.y.y\",\n            \"leader_fqdn\": \"x.x.x.x\",\n            \"type\": \"client\",\n            \"datacenter\": \"US-01\"\n        }\n    },\n    \"policy_name\": null,\n    \"policy_group\": null,\n    \"run_list\": [\n        \"recipe[clivern-consul::default]\"\n    ]\n}\n```\n\nThen run chef-client on these servers and open `http://y.y.y.y:8500/` on your browser.\n\n\nMisc\n====\n\nChangelog\n---------\n\nVersion 1.0.2:\n```\nUpdate The Cookbook Version\n```\n\nVersion 1.0.1:\n```\nSimple Fix.\n```\n\nVersion 1.0.0:\n```\nInitial Release.\n```\n\nAcknowledgements\n----------------\n\n© 2018, Clivern. Released under [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt).\n\n**Consul-Cookbook** is authored and maintained by [@clivern](http://github.com/clivern).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclivern%2Fconsul-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclivern%2Fconsul-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclivern%2Fconsul-cookbook/lists"}