{"id":14984411,"url":"https://github.com/semrush/ansible-role-clickhouse","last_synced_at":"2025-08-22T12:40:47.809Z","repository":{"id":245101940,"uuid":"806555900","full_name":"semrush/ansible-role-clickhouse","owner":"semrush","description":"Next-gen ansible role for ClickHouse with YAML","archived":false,"fork":false,"pushed_at":"2025-05-02T12:59:22.000Z","size":116,"stargazers_count":6,"open_issues_count":10,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-02T14:04:23.014Z","etag":null,"topics":["ansible-role","clickhouse"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ui/standalone/roles/semrush/clickhouse/documentation/","language":"Jinja","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/semrush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-27T12:25:01.000Z","updated_at":"2025-05-02T12:59:25.000Z","dependencies_parsed_at":"2024-06-19T21:10:46.068Z","dependency_job_id":"31377b08-71f0-4a4c-83ed-3a4751c9e250","html_url":"https://github.com/semrush/ansible-role-clickhouse","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"56957b1d100e87cece56362b180b5c9070b71063"},"previous_names":["semrush/ansible-role-clickhouse"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/semrush/ansible-role-clickhouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semrush%2Fansible-role-clickhouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semrush%2Fansible-role-clickhouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semrush%2Fansible-role-clickhouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semrush%2Fansible-role-clickhouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semrush","download_url":"https://codeload.github.com/semrush/ansible-role-clickhouse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semrush%2Fansible-role-clickhouse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264578900,"owners_count":23631555,"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":["ansible-role","clickhouse"],"created_at":"2024-09-24T14:09:00.008Z","updated_at":"2025-07-10T12:34:05.994Z","avatar_url":"https://github.com/semrush.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Yet Another Ansible Role For ClickHouse\n\n### Prerequisites\n\n- ClickHouse v23.5 (*note: yes, it could be relaxed, but I just don't think that it worth it*)\n- Ansible 2.11+\n\n#### Version requirement changelog\n\nIt is better to use the latest ClickHouse stable release.\n\nDetails can be read [here](Documentation/ClickHouse_Changelog.md).\n\n### Getting started\n\nFor a basic standalone setup it is enough to do the following:\n\nAdd requirements:\n\n```yaml\n# requirements.yml\n---\nroles:\n- name: clickhouse\n  scm: git\n  src: git@github.com:semrush/ansible-role-clickhouse.git\n  version: 1.0.0\n```\n\nIt is also recommended to add role to `.gitignore` (or install it outside of\nthe repository), this will allow to keep things clean, i.e. you will not\nrandomly edit the roles file and later `ansible-galaxy` may overwrite them\n(though there is one exception to this rule -\n[`ansible-pull`](https://github.com/ansible/ansible/issues/76535#issuecomment-1300762202)):\n\n```\n# .gitignore\n/roles/clickhouse\n```\n\nAnd install the role:\n\n```sh\nansible-galaxy install -r requirements.yml -p roles clickhouse\n```\n\nAdd a simple playbook:\n\n```yaml\n# clickhouse.yml\n---\n- name: Install ClickHouse\n  hosts: all\n  gather_facts: yes\n  roles:\n    - clickhouse\n```\n\nAnd run ansible:\n\n```sh\nansible-playbook --become --diff clickhouse.yml\n# ansible-playbook --become --diff -i CLICKHOUSE_HOST, clickhouse.yml\n```\n\nHere is an [example patch](12bbe612e66ce2dc489a1a2acb2713ac0ccefadb),\nor the [folder itself](example)\n\n### [Advanced usage](Documentation/Advanced_Configuration.md)\n\nSee [this page](Documentation/Advanced_Configuration.md).\n\n### Key features\n\n- Developed with extensibility in mind (at least I hope)\n\n- Using YAML for configurations, and even though the syntax somewhere is\n  tricky, it shows itself good.\n\n  For instance `jinja2` natively render `dict` in `YAML`, so we don't need to\n  add additional loops over keys/values in the templates.\n\n- Provide sane defaults:\n\n  - Enabled `*_log` tables by default - usual problem for existing roles is\n    that they have a copy of `config.xml` from a specific point in time, and\n    don't have new system tables.\n\n  - TTL for `*_log` tables\n\n  - Enabled prometheus exported by default\n\n  - Has extra metrics via `http_handlers`\n\n### [Comparison](Documentation/Comparison.md)\n\nSee [this page](Documentation/Comparison.md).\n\n### [Backward incompatible changes](Documentation/Backward_Incompatible_Changes.md)\n\nSee [this page](Documentation/Backward_Incompatible_Changes.md).\n\n### [Tests](Documentation/Tests.md)\n\nSee [this page](Documentation/Tests.md).\n\n### [Examples](example#test)\n\nSee [this page](example#test).\n\n### Question? Problem?\n\nYou can create an issue [here](https://github.com/semrush/ansible-role-clickhouse/issues).\n\n### Adopters\n\n*Please, add yourself to the adopters list (just send us merge request)!*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemrush%2Fansible-role-clickhouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemrush%2Fansible-role-clickhouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemrush%2Fansible-role-clickhouse/lists"}