Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'clickhouse_replica_id' is undefined #34

Open
RouR opened this issue May 8, 2021 · 2 comments
Open

'clickhouse_replica_id' is undefined #34

RouR opened this issue May 8, 2021 · 2 comments

Comments

@RouR
Copy link

RouR commented May 8, 2021

Default variables, single, clean server (without zooker)

TASK [nl2go.clickhouse : Config | Set ClickHouse configuration file] **********************************************************************************************************************************************fatal: [devsrv]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'clickhouse_replica_id' is undefined"}
@andresmazzo
Copy link

@RouR did you find a workaround to the bug?

@RouR
Copy link
Author

RouR commented Nov 11, 2021

Yes, part of my playbook:

# ansible-galaxy install nl2go.clickhouse
# - downloading role from https://github.com/nl2go/ansible-role-clickhouse/archive/0.3.16.tar.gz
# - extracting nl2go.clickhouse to /home/alex/.ansible/roles/nl2go.clickhouse
# - nl2go.clickhouse (0.3.16) was installed successfully
---
- name: Install ClickHouse
  hosts: clickhouse_servers    
  become: yes

  roles:
  - custom_clickhouse # fixed error in nl2go.clickhouse  

  # https://github.com/nl2go/ansible-role-clickhouse/blob/master/defaults/main.yml
  vars:
    clickhouse_display_name: "{{inventory_hostname}}-node"
    clickhouse_replica_id: "-0" # display_name suffix
    # clickhouse_version: 20.5.2.7
    clickhouse_version: "*"
    clickhouse_users: # More settings: https://clickhouse.tech/docs/en/operations/settings/settings-users/
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants