diff --git a/README.md b/README.md index a732f8a..367b40f 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,37 @@ F: Flag for remove clickhouse from host(disabled by default) clickhouse_remove: no ``` +Private mirror +-------------- +To use a private mirror you need to provide your own repository string and +the key. Key may be provided as key name to download from a keyserver or +as armored GPG public key (the key itself). To use a key from a keyring, +`clickhouse_repo_key` and `clickhouse_repo_keyserver` should be provided. + +To use a key in verbatim form, `clickhouse_repo_key_data` should be provided. + +Custom mirror may be provided with `clickhouse_repo` variable. + +Examples: +``` +clickhouse_repo: 'deb http://apt.example.com/aptly/clickhouse xenial main' +clickhouse_repo_key: AABBCCDD +clickhouse_repo_keyserver: keyserver.example.com +``` +or +``` +clickhouse_repo: 'deb http://apt.example.com/aptly/clickhouse xenial main' +clickhouse_repo_key_data: | + -----BEGIN PGP PUBLIC KEY BLOCK----- + Version: GnuPG v1.4.12 (GNU/Linux) + mQANBFGspxsACADWgH5qqQtEa+Bjqd33X0PiRNcUf/Vt9m828uUuF5uRCEKruUG0 + (few lines skipped) + LU/GfPzkCXlOt3Ud4L2EdvgQp/38VCNKmWi568soZnTwpjUt9AuN7iK3fm4= + =4dWC + -----END PGP PUBLIC KEY BLOCK----- +``` + + Example Playbook ---------------- diff --git a/defaults/main.yml b/defaults/main.yml index 0dfc7b1..04cfc64 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,21 @@ --- # defaults file for clickhouse +# Settings for apt repo +clickhouse_repo: "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" +clickhouse_repo_old: "deb http://repo.yandex.ru/clickhouse/xenial stable main" +clickhouse_repo_keyserver: keyserver.ubuntu.com +clickhouse_repo_key: E0C56BD4 +clickhouse_package: + - clickhouse-client + - clickhouse-server-base + - clickhouse-server-common +clickhouse_path_configdir: "/etc/clickhouse-server" +clickhouse_path_logdir: "/var/log/clickhouse-server" +clickhouse_path_data: "/var/lib/clickhouse/" +clickhouse_path_tmp: "/var/lib/clickhouse/tmp/" + + #Flag for using with requirements check clickhouse_supported: no #Type of installation (package,source) diff --git a/vars/Ubuntu_precise.yml b/vars/Ubuntu_precise.yml index 950cc8c..7e0cb53 100644 --- a/vars/Ubuntu_precise.yml +++ b/vars/Ubuntu_precise.yml @@ -1,14 +1,2 @@ +--- clickhouse_supported: yes -clickhouse_repo: "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" -clickhouse_repo_old: "deb http://repo.yandex.ru/clickhouse/xenial stable main" -clickhouse_repo_keyserver: keyserver.ubuntu.com -clickhouse_repo_key: E0C56BD4 -clickhouse_package: - - clickhouse-client - - clickhouse-server-base - - clickhouse-server-common -clickhouse_path_configdir: "/etc/clickhouse-server" -clickhouse_path_logdir: "/var/log/clickhouse-server" -clickhouse_path_data: "/var/lib/clickhouse/" -clickhouse_path_tmp: "/var/lib/clickhouse/tmp/" - diff --git a/vars/Ubuntu_trusty.yml b/vars/Ubuntu_trusty.yml index cf760f2..7e0cb53 100644 --- a/vars/Ubuntu_trusty.yml +++ b/vars/Ubuntu_trusty.yml @@ -1,13 +1,2 @@ +--- clickhouse_supported: yes -clickhouse_repo: "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" -clickhouse_repo_old: "deb http://repo.yandex.ru/clickhouse/xenial stable main" -clickhouse_repo_keyserver: keyserver.ubuntu.com -clickhouse_repo_key: E0C56BD4 -clickhouse_package: - - clickhouse-client - - clickhouse-server-base - - clickhouse-server-common -clickhouse_path_configdir: "/etc/clickhouse-server" -clickhouse_path_logdir: "/var/log/clickhouse-server" -clickhouse_path_data: "/var/lib/clickhouse/" -clickhouse_path_tmp: "/var/lib/clickhouse/tmp/" diff --git a/vars/Ubuntu_xenial.yml b/vars/Ubuntu_xenial.yml index cf760f2..7e0cb53 100644 --- a/vars/Ubuntu_xenial.yml +++ b/vars/Ubuntu_xenial.yml @@ -1,13 +1,2 @@ +--- clickhouse_supported: yes -clickhouse_repo: "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" -clickhouse_repo_old: "deb http://repo.yandex.ru/clickhouse/xenial stable main" -clickhouse_repo_keyserver: keyserver.ubuntu.com -clickhouse_repo_key: E0C56BD4 -clickhouse_package: - - clickhouse-client - - clickhouse-server-base - - clickhouse-server-common -clickhouse_path_configdir: "/etc/clickhouse-server" -clickhouse_path_logdir: "/var/log/clickhouse-server" -clickhouse_path_data: "/var/lib/clickhouse/" -clickhouse_path_tmp: "/var/lib/clickhouse/tmp/"