aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.pm.dist
blob: cf1362af0d1809206f97844b2989975af0a741ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#! /usr/bin/perl
use strict;
use warnings;
use DBI;
package nms::config;

# DB
our $db_name = "nms";
our $db_host = "bb-8.tg16.gathering.org";
our $db_username = "nms";
our $db_password = "<removed>"; # TODO: Remove before publishing "goodiebag"

# Gondul
our $gondul_url = "http://foo.bar"; # TODO: Remove before publishing "goodiebag"
our $gondul_user = "secret"; # TODO: Remove before publishing "goodiebag"
our $gondul_pass = "<removed>"; # TODO: Remove before publishing "goodiebag"

# NMS: What SNMP objects to fetch.
# Some basics
our @snmp_objects = [
['ifIndex'],
['sysName'],
['sysDescr'],
['ifHighSpeed'],
['ifType'],
['ifName'],
['ifDescr'],
['ifAlias'],
['ifOperStatus'],
['ifAdminStatus'],
['ifLastChange'],
['ifHCInOctets'],
['ifHCOutOctets'],
['ifInDiscards'],
['ifOutDiscards'],
['ifInErrors'],
['ifOutErrors'],
['ifInUnknownProtos'],
['ifOutQLen'],
['sysUpTime'],
['jnxOperatingTemp'],
['jnxOperatingCPU'],
['jnxOperatingDescr'],
['jnxBoxSerialNo']
];
# Max SNMP polls to fire off at the same time.
our $snmp_max = 20;

# DHCP-servers
our $dhcp_server1 = "185.110.149.2"; # primary
our $dhcp_server2 = "185.110.148.2"; # secondary

# TACACS-login for NMS
our $tacacs_user = "<removed>"; # TODO: Remove before publishing "goodiebag"
our $tacacs_pass = "<removed>"; # TODO: Remove before publishing "goodiebag"

# Telnet-timeout for smanagrun
our $telnet_timeout = 300;

# IP/IPv6/DNS-info
our $tgname = "tg16";
our $pri_hostname = "r2-d2";
our $pri_v4 = "185.110.149.2";
our $pri_v6 = "2a06:5841:149a::2";
our $pri_net_v4 = "185.110.149.0/26";
our $pri_net_v6 = "2a06:5841:149a::/64";

our $sec_hostname = "c-3po";
our $sec_v4 = "185.110.148.2";
our $sec_v6 = "2a06:5841:1337::2";
our $sec_net_v4 = "185.110.148.0/26";
our $sec_net_v6 = "2a06:5841:1337::/64";

# for RIPE to get reverse zones via DNS AXFR
# https://www.ripe.net/data-tools/dns/reverse-dns/how-to-set-up-reverse-delegation
our $ext_xfer = "193.0.0.0/22; 2001:610:240::/48; 2001:67c:2e8::/48";

# allow XFR from NOC
our $noc_net = "185.110.150.0/25; 2a06:5841:150a::1/64";

# To generate new dnssec-key for ddns:
# dnssec-keygen -a HMAC-MD5 -b 512 -n HOST DHCP_UPDATER
our $ddns_key = "<removed>"; # TODO: Remove before publishing "goodiebag"
our $ddns_to  = "127.0.0.1"; # just use localhost

# Base networks
our $base_ipv4net = "88.92.0.0/17";
our $base_ipv6net = "2a06:5840::/29";
our $ipv6zone = "0.4.8.5.6.0.a.2.ip6.arpa";

# extra networks that are outside the normal ranges
# that should have recursive DNS access
our @rec_net = (
	'185.110.148.0/22',
);

# extra networks that are outside the normal ranges
# that should be added to DNS
our @extra_nets = (
	'185.110.148.0/24',
	'185.110.149.0/24',
	'185.110.150.0/24',
	'185.110.151.0/24',
);

# add WLC's
our $wlc1_v4 = "185.110.148.14";
our $wlc1_v6 = "f00d::1";

# add VOIP-server
our $voip1_v4 = "<removed>"; # TODO: Remove before publishing "goodiebag"
our $voip1_v6 = "<removed>"; # TODO: Remove before publishing "goodiebag"

# PXE-server (rest of bootstrap assumes $sec_v4/$sec_v6)
our $pxe_server_v4 = $sec_v4;
our $pxe_server_v6 = $sec_v6;

# FAP-server (Gondul)
our $fap_server_v4 = "<removed>"; # TODO: Remove before publishing "goodiebag"
our $fap_server_v6 = "<removed>"; # TODO: Remove before publishing "goodiebag"
our @fap_networks = (
	'88.92.54.0/26',	# distro0
	'88.92.54.64/26',       # distro1
	'88.92.54.128/26',      # distro2
	'88.92.54.192/26',      # distro3
	'88.92.55.0/26',        # distro4
	'88.92.55.64/26',       # distro5
	'88.92.55.128/26',      # distro6
	'88.92.55.192/26',      # distro7
	'88.92.56.0/26',        # distro8
	'88.92.56.64/26',       # vc1.ring
);



1;