1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'modules/profile/manifests/wmcs/db/wikireplicas/dedicated/analytics.pp', line 1
class profile::wmcs::db::wikireplicas::dedicated::analytics (
Hash[String, Stdlib::Datasize] $instances = lookup('profile::wmcs::db::wikireplicas::mariadb_multiinstance::instances'),
Hash[String, Stdlib::Port] $section_ports = lookup('profile::mariadb::section_ports')
) {
# clouddb1021 is a special db host dedicated only to the Analytics team.
# Special ferm rules are needed to allow Analytics client to pull data from
# the host.
$instances.each |$section, $buffer_pool| {
$port = $section_ports[$section]
ferm::service { "mysql_labs_db_analytics_${section}":
proto => 'tcp',
port => $port,
notrack => true,
srange => '$ANALYTICS_NETWORKS',
}
}
}
|