]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/lvm/manifests/init.pp
585efc476a3d29eead404c660dcca42de23e555c
[dsa-puppet.git] / modules / lvm / manifests / init.pp
1 class lvm {
2         case $::hostname {
3                 dijkstra,luchesi,rossini: {
4                         $conffile = 'lvm-ubc-ganeti.conf'
5                 }
6                 default: {
7                         $conffile = ''
8                 }
9         }
10
11         if $conffile != '' {
12                 package { 'lvm2':
13                         ensure => installed,
14                 }
15
16                 file { '/etc/lvm/lvm.conf':
17                         source  => "puppet:///modules/lvm/$conffile",
18                 }
19         }
20 }