]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/lvm/manifests/init.pp
0f43639536957e52772f92ed0d2a64ecc5bf113b
[dsa-puppet.git] / modules / lvm / manifests / init.pp
1 class lvm {
2         case $::hostname {
3                 dijkstra,luchesi,rossini,salieri: {
4                         $conffile = 'lvm-ubc-ganeti.conf'
5                 }
6                 tristano,pasquini,bertali,boito: {
7                         $conffile = 'lvm-ubc-ganeti-p410.conf'
8                 }
9                 csail-node01,csail-node02: {
10                         $conffile = 'lvm-csail-nodeX-ganeti.conf'
11                 }
12                 default: {
13                         $conffile = ''
14                 }
15         }
16
17         if $conffile != '' {
18                 package { 'lvm2':
19                         ensure => installed,
20                 }
21
22                 file { '/etc/lvm/lvm.conf':
23                         source  => "puppet:///modules/lvm/$conffile",
24                 }
25         }
26 }