Puppet Class: clickhouse::server::config::default_localhost

Inherits:
clickhouse::server
Defined in:
manifests/server/config/default_localhost.pp

Summary

Restricts network access for `default`

Overview

clickhouse::server::config::default_localhost By default, ClickHouse listens only localhost and user ‘default` is able to connect from anywhere. This class, if included, restricts network access.

Examples:

Simple use

include clickhouse::server::config::default_localhost

Author:

  • InnoGames GmbH



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/server/config/default_localhost.pp', line 12

class clickhouse::server::config::default_localhost inherits clickhouse::server {

    $config = {
        'users' => {
            'default' => {
                'networks' => {
                    'replace' => 'replace',
                    'host'    => ['localhost'],
                }
            }
        }
    }

    clickhouse::server::config { 'default-localhost':
        section => 'users',
        data    => $config,
    }
}