]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ganeti2/manifests/init.pp
wheezy
[dsa-puppet.git] / modules / ganeti2 / manifests / init.pp
1 class ganeti2 {
2
3         include ganeti2::params
4         include ganeti2::firewall
5
6         $drbd = $ganeti2::params::drbd
7
8         package { 'ganeti2':
9                 ensure => installed
10         }
11
12         package { 'ganeti-instance-debootstrap':
13                 ensure => installed
14         }
15
16         package { 'ganeti-htools':
17                 ensure => installed
18         }
19
20         if $drbd {
21                 package { 'drbd8-utils':
22                         ensure => installed
23                 }
24         }
25
26         file {
27                 '/etc/ganeti/instance-debootstrap/variants.list':
28                         content => template('ganeti2/instance-debootstrap/variants.list.erb'),
29                         ;
30                 '/etc/ganeti/instance-debootstrap/variants/dsa.conf':
31                         content => template('ganeti2/instance-debootstrap/variants/dsa.conf.erb'),
32                         ;
33                 '/etc/ganeti/instance-debootstrap/variants/dsa-wheezy.conf':
34                         content => template('ganeti2/instance-debootstrap/variants/dsa-wheezy.conf.erb'),
35                         ;
36                 '/etc/ganeti/instance-debootstrap/hooks/00-dsa-configure-networking':
37                         content => template('ganeti2/instance-debootstrap/hooks/00-dsa-configure-networking.erb'),
38                         mode   => '0555',
39                         ;
40                 '/etc/ganeti/instance-debootstrap/hooks/10-dsa-install-extra-packages':
41                         content => template('ganeti2/instance-debootstrap/hooks/10-dsa-install-extra-packages.erb'),
42                         mode   => '0555',
43                         ;
44                 '/etc/ganeti/instance-debootstrap/hooks/20-dsa-install-bootloader':
45                         content => template('ganeti2/instance-debootstrap/hooks/20-dsa-install-bootloader.erb'),
46                         mode   => '0555',
47                         ;
48                 '/etc/ganeti/instance-debootstrap/hooks/30-dsa-install-ssh-keys':
49                         content => template('ganeti2/instance-debootstrap/hooks/30-dsa-install-ssh-keys.erb'),
50                         mode   => '0555',
51                         ;
52                 '/etc/ganeti/instance-debootstrap/hooks/40-dsa-setup-swapfile':
53                         content => template('ganeti2/instance-debootstrap/hooks/40-dsa-setup-swapfile.erb'),
54                         mode   => '0555',
55                         ;
56                 '/etc/ganeti/instance-debootstrap/hooks/clear-root-password':
57                         mode   => '0444',
58                         ;
59                 '/etc/ganeti/instance-debootstrap/hooks/xen-hvc0':
60                         mode   => '0444',
61                         ;
62         }
63
64 }