{"id":22370518,"url":"https://github.com/pollosp/consultest","last_synced_at":"2026-02-05T06:31:37.859Z","repository":{"id":146699558,"uuid":"51084831","full_name":"pollosp/consultest","owner":"pollosp","description":"Testing with vagrant","archived":false,"fork":false,"pushed_at":"2016-02-06T21:10:07.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T16:46:13.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pollosp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-04T15:28:52.000Z","updated_at":"2016-02-04T15:28:52.000Z","dependencies_parsed_at":"2023-04-13T09:33:17.902Z","dependency_job_id":null,"html_url":"https://github.com/pollosp/consultest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pollosp/consultest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollosp%2Fconsultest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollosp%2Fconsultest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollosp%2Fconsultest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollosp%2Fconsultest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pollosp","download_url":"https://codeload.github.com/pollosp/consultest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pollosp%2Fconsultest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29114910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-12-04T19:45:55.379Z","updated_at":"2026-02-05T06:31:37.834Z","avatar_url":"https://github.com/pollosp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# consul tests\n### WHAT IS THIS?\n- Vagrant file in order to Test consul and consul-template\n- Consul config files\n### DOCUMENTATION\n- https://www.digitalocean.com/community/tutorials/an-introduction-to-using-consul-a-service-discovery-system-on-ubuntu-14-04\n- https://www.livewyer.com/blog/2015/02/05/service-discovery-docker-containers-using-consul-and-registrator\n- https://github.com/hashicorp/consul-template#examples\n\n### STEPS TO RUN CONSUL CLUSTER\n- Login consulserver2 `vagrant ssh consulserver2` and execute `tmux`\n- Press ctrl+b+c to create new terminals and ctrl+b+n to move between terminals\n- Execute `consul agent -server -bootstrap -data-dir /tmp/consul -bind=192.168.50.2` in order to bootstrap firstnode\n- Login in consulserver3 and consulserver4 in order to boot agents `consul agent -server -data-dir /tmp/consul -bind=192.168.0.3` in consulserver3 and `consul agent -server -data-dir /tmp/consul -bind=192.168.0.4` in consulserver4\n- Move again to consulserver2 and add consulserver3 and consulserver4 to the cluster with `consul join 192.168.0.3 192.168.0.4`\n- Load UI `consul agent -data-dir /tmp/consul -client 192.168.50.5 -ui-dir /tmp/webiu -join 192.168.50.2`\n- Check UI from host browser `http://localhost:8500/ui`\n- Check example\n`{\n    \"service\": {\n        \"name\": \"web server\",\n        \"port\": 80,\n        \"tags\": [\"nginx\", \"demonstration\"],\n        \"check\": {\n            \"script\": \"curl localhost:80 \u003e /dev/null 2\u003e\u00261\",\n            \"interval\": \"10s\"\n        }\n    }\n}`\n- Reload agent with this parameter `-config-dir /home/your_user/services` to make efective the new service monitoring\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollosp%2Fconsultest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpollosp%2Fconsultest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollosp%2Fconsultest/lists"}