Advertisement
thisisvld

Untitled

Mar 4th, 2019
2,970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 1.26 KB | None | 0 0
  1. class profile::ch {
  2.   class { 'clickhouse':
  3.     remote_servers => {
  4.       push => {
  5.         1 => {
  6.           options  => { weight => '1', internal_replication => true, },
  7.           replicas => {
  8.             1 => { host => 'ch-n1', port => '9000', },
  9.             2 => { host => 'ch-n4', port => '9000', },
  10.           },
  11.         },
  12.         2 => {
  13.           options  => { weight => '1', internal_replication => true, },
  14.           replicas => {
  15.             1 => { host => 'ch-n3', port => '9000', },
  16.             2 => { host => 'ch-n6', port => '9000', },
  17.           },
  18.         },
  19.         3 => {
  20.           options  => { weight => '1', internal_replication => true, },
  21.           replicas => {
  22.             1 => { host => 'ch-n5', port => '9000', },
  23.             2 => { host => 'ch-n2', port => '9000', },
  24.           },
  25.         },
  26.       },
  27.     },
  28.  
  29.     zookeeper => {
  30.       1 => { host => 'z-n1', port => '2181', },
  31.       2 => { host => 'z-n2', port => '2181', },
  32.       3 => { host => 'z-n3', port => '2181', },
  33.     },
  34.  
  35.     users => {
  36.       sspsmaclick => {
  37.         password        => '123123',
  38.         networks        => [ '127.0.0.1', '10.200.0.1', '192.168.12.0/24' ],
  39.         allow_databases => [ 'ssp_db', 'ssp_db_shard', 'ssp_db_buffer' ],
  40.       },
  41.     },
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement