https://github.com/clivern/consul-cookbook
🐜Install and Manage Consul With Chef.
https://github.com/clivern/consul-cookbook
chef chef-cookbook chef-server consul consul-cookbook service-discovery
Last synced: 3 months ago
JSON representation
🐜Install and Manage Consul With Chef.
- Host: GitHub
- URL: https://github.com/clivern/consul-cookbook
- Owner: Clivern
- License: apache-2.0
- Created: 2018-05-13T19:27:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:10:21.000Z (over 1 year ago)
- Last Synced: 2025-03-08T04:29:27.599Z (3 months ago)
- Topics: chef, chef-cookbook, chef-server, consul, consul-cookbook, service-discovery
- Language: Ruby
- Homepage: https://github.com/Clivern/Monk
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Consul-Cookbook
==============A Chef Cookbook To Install and Manage [Consul](https://www.consul.io/).
Usage
-----1. Add the following recipes to your node run list.
```bash
{
"run_list": [
"recipe[clivern-consul::default]"
]
}
```2. The configure the node whether it is a leader, server or client. Let's imagine we have three servers:
- Leader FQDN `x.x.x.x`.
- Client FQDN `y.y.y.y`.
- Server FQDN `z.z.z.z`.First The Leader Node should be like the following:
```bash
{
"name": "leader-node",
"chef_environment": "_default",
"normal": {
"tags": [],
"consul": {
"node_fqdn": "x.x.x.x",
"leader_fqdn": "x.x.x.x",
"type": "leader",
"datacenter": "US-01"
}
},
"policy_name": null,
"policy_group": null,
"run_list": [
"recipe[clivern-consul::default]"
]
}
```Then The Server(s) Node should be like the following:
```bash
{
"name": "server-node-01",
"chef_environment": "_default",
"normal": {
"tags": [],
"consul": {
"node_fqdn": "z.z.z.z",
"leader_fqdn": "x.x.x.x",
"type": "server",
"datacenter": "US-01"
}
},
"policy_name": null,
"policy_group": null,
"run_list": [
"recipe[clivern-consul::default]"
]
}
```Then The Client(s) Node should be like the following:
```bash
{
"name": "client-node-01",
"chef_environment": "_default",
"normal": {
"tags": [],
"consul": {
"node_fqdn": "y.y.y.y",
"leader_fqdn": "x.x.x.x",
"type": "client",
"datacenter": "US-01"
}
},
"policy_name": null,
"policy_group": null,
"run_list": [
"recipe[clivern-consul::default]"
]
}
```Then run chef-client on these servers and open `http://y.y.y.y:8500/` on your browser.
Misc
====Changelog
---------Version 1.0.2:
```
Update The Cookbook Version
```Version 1.0.1:
```
Simple Fix.
```Version 1.0.0:
```
Initial Release.
```Acknowledgements
----------------© 2018, Clivern. Released under [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt).
**Consul-Cookbook** is authored and maintained by [@clivern](http://github.com/clivern).