]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ganeti2/manifests/init.pp
sudo: replace debbits by publicity
[dsa-puppet.git] / modules / ganeti2 / manifests / init.pp
index bacb78cf91b704722162e6e369c952cb494d6c3c..ca56ab071fdb40e30a9e7d227c18cd40646e1038 100644 (file)
@@ -1,3 +1,11 @@
+# = Class: ganeti2
+#
+# Standard ganeti2 config debian.org hosts
+#
+# == Sample Usage:
+#
+#   include ganeti2
+#
 class ganeti2 {
 
        include ganeti2::params
@@ -5,57 +13,10 @@ class ganeti2 {
 
        $drbd = $ganeti2::params::drbd
 
-       package { 'ganeti2':
+       package { 'ganeti':
                ensure => installed
        }
 
-       package { 'ganeti-instance-debootstrap':
-               ensure => installed
-       }
-
-       package { 'ganeti-htools':
-               ensure => installed
-       }
-
-       if $drbd {
-               package { 'drbd8-utils':
-                       ensure => installed
-               }
-       }
-
-       file {
-               '/etc/ganeti/instance-debootstrap/variants.list':
-                       content => template('ganeti2/instance-debootstrap/variants.list.erb'),
-                       ;
-               '/etc/ganeti/instance-debootstrap/variants/dsa.conf':
-                       content => template('ganeti2/instance-debootstrap/variants/dsa.conf.erb'),
-                       ;
-               '/etc/ganeti/instance-debootstrap/hooks/00-dsa-configure-networking':
-                       content => template('ganeti2/instance-debootstrap/hooks/00-dsa-configure-networking.erb'),
-                       mode   => '0555',
-                       ;
-               '/etc/ganeti/instance-debootstrap/hooks/10-dsa-install-extra-packages':
-                       content => template('ganeti2/instance-debootstrap/hooks/10-dsa-install-extra-packages.erb'),
-                       mode   => '0555',
-                       ;
-               '/etc/ganeti/instance-debootstrap/hooks/20-dsa-install-bootloader':
-                       content => template('ganeti2/instance-debootstrap/hooks/20-dsa-install-bootloader.erb'),
-                       mode   => '0555',
-                       ;
-               '/etc/ganeti/instance-debootstrap/hooks/30-dsa-install-ssh-keys':
-                       content => template('ganeti2/instance-debootstrap/hooks/30-dsa-install-ssh-keys.erb'),
-                       mode   => '0555',
-                       ;
-               '/etc/ganeti/instance-debootstrap/hooks/40-dsa-setup-swapfile':
-                       content => template('ganeti2/instance-debootstrap/hooks/40-dsa-setup-swapfile.erb'),
-                       mode   => '0555',
-                       ;
-               '/etc/ganeti/instance-debootstrap/hooks/clear-root-password':
-                       mode   => '0444',
-                       ;
-               '/etc/ganeti/instance-debootstrap/hooks/xen-hvc0':
-                       mode   => '0444',
-                       ;
-       }
 
+       site::linux_module { 'tun': }
 }