remove from-letsencrypt symlink from fileserver path
[mirror/dsa-puppet.git] / modules / dsa_lvm / manifests / init.pp
1 class dsa_lvm {
2         case $::hostname {
3                 'ubc-bl8','ubc-bl4': {
4                         $conffile = 'lvm-ubc-ganeti.conf'
5                 }
6                 'ubc-bl3','ubc-bl7','ubc-bl2','ubc-bl6': {
7                         $conffile = 'lvm-ubc-ganeti-p410.conf'
8                 }
9                 'csail-node01','csail-node02': {
10                         $conffile = 'lvm-csail-nodeX-ganeti.conf'
11                 }
12                 'grnet-node01','grnet-node02': {
13                         $conffile = 'lvm-grnet-nodeX-ganeti.conf'
14                 }
15                 'bm-bl1','bm-bl2','bm-bl3','bm-bl4','bm-bl5','bm-bl6','bm-bl7','bm-bl8','bm-bl9','bm-bl10','bm-bl11','bm-bl12','bm-bl13','bm-bl14': {
16                         $conffile = 'lvm-bm-blades.conf'
17                 }
18                 'prokofiev': {
19                         $conffile = 'lvm-prokofiev.conf'
20                 }
21                 'clementi','czerny': {
22                         $conffile = 'lvm-manda-ganeti.conf'
23                 }
24                 'ubc-enc2bl01','ubc-enc2bl02','ubc-enc2bl09','ubc-enc2bl10': {
25                         $conffile = 'lvm-ubc-ganeti2.conf'
26                 }
27                 'conova-node01','conova-node02': {
28                         $conffile = 'lvm-conova-ganeti.conf'
29                 }
30                 default: {
31                         $conffile = ''
32                 }
33         }
34
35         if $conffile != '' {
36                 package { 'lvm2':
37                         ensure => installed,
38                 }
39
40                 file { '/etc/lvm/lvm.conf':
41                         ensure => file,
42                         source => "puppet:///modules/dsa_lvm/${conffile}",
43                 }
44         }
45 }