semrush / ansible-role-clickhouse

Next-gen ansible role for ClickHouse with YAML
https://galaxy.ansible.com/ui/standalone/roles/semrush/clickhouse/documentation/
Apache License 2.0
5 stars 2 forks source link
ansible-role clickhouse

Yet Another Ansible Role For ClickHouse

Prerequisites

Version requirement changelog

It is better to use the latest ClickHouse stable release.

Details can be read here.

Getting started

For a basic standalone setup it is enough to do the following:

Add requirements:

# requirements.yml
---
roles:
- name: clickhouse
  scm: git
  src: git@github.com:semrush/ansible-role-clickhouse.git
  version: 1.0.0

It is also recommended to add role to .gitignore (or install it outside of the repository), this will allow to keep things clean, i.e. you will not randomly edit the roles file and later ansible-galaxy may overwrite them (though there is one exception to this rule - ansible-pull):

# .gitignore
/roles/clickhouse

And install the role:

ansible-galaxy install -r requirements.yml -p roles clickhouse

Add a simple playbook:

# clickhouse.yml
---
- name: Install ClickHouse
  hosts: all
  gather_facts: yes
  roles:
    - clickhouse

And run ansible:

ansible-playbook --become --diff clickhouse.yml
# ansible-playbook --become --diff -i CLICKHOUSE_HOST, clickhouse.yml

Here is an example patch, or the folder itself

Advanced usage

See this page.

Key features

Comparison

See this page.

Backward incompatible changes

See this page.

Tests

See this page.

Examples

See this page.

Question? Problem?

You can create an issue here.

Adopters

Please, add yourself to the adopters list (just send us merge request)!