Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Allow to use custom repository #15

@amarao

Description

@amarao

We have a policy to use local mirrors for all external packages. That means, to use clickhouse in production I need to create a local mirror and to change the ansible-clickhouse role to use that mirror.

When I've tried to use custom clickhouse_repo variable I found that ansible-clickhouse uses 'include_vars' which overrides variables from the calling playbook. Moreover, I found that all three files to include (vars/Ubuntu_trusty.yml, Ubuntu_precise.yml and Ubuntu_xenial.yml) are identical (except for a single empty line).

To achieve my goal (use of custom repositories) I'd like to do four things:

  1. Move all variables from Ubuntu* files into defaults.
  2. Remove include_var statement
  3. Add variable clickhouse_repo_key_data (not defined by default).
  4. In case of clickhouse_repo_key_data make role to use it instead of clickhouse_repo_keyserver and clickhouse_repo_key to add that key into apt_key (with data option).

Is it ok?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions