]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ganeti2/manifests/params.pp
dupload.conf: enable gpg check
[dsa-puppet.git] / modules / ganeti2 / manifests / params.pp
1 # = Class: ganeti2::params
2 #
3 # Parameters for ganeti clusters
4 #
5 # == Sample Usage:
6 #
7 #   include ganeti2::params
8 #
9 class ganeti2::params {
10         case $::cluster {
11                 'ganeti-osuosl.debian.org': {
12                         $ganeti_hosts = ['140.211.166.20/32']
13                         $ganeti_priv  = ['140.211.166.20/32']
14                         $drbd         = false
15                 }
16                 'ganeti2.debian.org': {
17                         $ganeti_hosts = ['206.12.19.213/32', '206.12.19.217/32', '206.12.19.212/32', '206.12.19.216/32', '206.12.19.19/32', '206.12.19.20/32', '206.12.19.218/32', '206.12.19.214/32']
18                         $ganeti_priv  = ['192.168.2.213/32', '192.168.2.217/32', '192.168.2.212/32', '192.168.2.216/32', '192.168.2.19/32', '192.168.2.20/32', '192.168.2.218/32', '192.168.2.214/32']
19                         $drbd         = true
20                 }
21                 'ganeti3.debian.org': {
22                         $ganeti_hosts = ['82.195.75.103/32', '82.195.75.109/32']
23                         $ganeti_priv  = ['192.168.75.103/32', '192.168.75.109/32']
24                         $drbd         = true
25                 }
26                 'ganeti.bm.debian.org': {
27                         $ganeti_hosts = ['5.153.231.240/28']
28                         $ganeti_priv  = ['172.29.120.0/24']
29                         $drbd         = false
30                 }
31                 'ganeti.csail.debian.org': {
32                         $ganeti_hosts = ['128.31.0.16/32', '128.31.0.46/32']
33                         $ganeti_priv  = ['172.29.178.0/24']
34                         $drbd         = true
35                 }
36                 'ganeti.grnet.debian.org': {
37                         $ganeti_hosts = ['194.177.211.195/32', '194.177.211.196/32']
38                         $ganeti_priv  = ['172.29.175.0/24']
39                         $drbd         = true
40                 }
41                 default: {
42                         $ganeti_hosts = []
43                         $ganeti_priv  = []
44                         $drbd         = false
45                 }
46         }
47 }