Puppet Class: profile::analytics::refinery::network_region_config
- Defined in:
- modules/profile/manifests/analytics/refinery/network_region_config.pp
Overview
SPDX-License-Identifier: Apache-2.0 Class: profile::analytics::refinery::network_region_config
Looks up Wikimedia network infrastructure configuration and renders a yaml mapping of (region -> [subnet1, subnet2, …]).
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'modules/profile/manifests/analytics/refinery/network_region_config.pp', line 7
class profile::analytics::refinery::network_region_config {
# Get the list of infrastructure prefixes per site.
include network::constants
$network_infra = $::network::constants::network_infra
# Render the config file.
$network_region_config_file = "${::profile::analytics::refinery::config_dir}/network_region_config.yaml"
file { $network_region_config_file:
content => to_yaml($network_infra),
}
}
|