summaryrefslogtreecommitdiffstats
path: root/src/installer
diff options
context:
space:
mode:
Diffstat (limited to 'src/installer')
-rw-r--r--src/installer/OpenSLX/OSExport/Distro/Centos.pm35
-rw-r--r--src/installer/OpenSLX/OSExport/Distro/Rhel.pm94
-rw-r--r--src/installer/OpenSLX/OSExport/Distro/Scientific.pm35
-rw-r--r--src/installer/OpenSLX/OSSetup/Distro/Centos.pm27
-rw-r--r--src/installer/OpenSLX/OSSetup/Distro/Rhel.pm48
-rw-r--r--src/installer/OpenSLX/OSSetup/Distro/Scientific.pm27
-rw-r--r--src/installer/OpenSLX/OSSetup/Engine.pm14
7 files changed, 276 insertions, 4 deletions
diff --git a/src/installer/OpenSLX/OSExport/Distro/Centos.pm b/src/installer/OpenSLX/OSExport/Distro/Centos.pm
new file mode 100644
index 00000000..664e54bd
--- /dev/null
+++ b/src/installer/OpenSLX/OSExport/Distro/Centos.pm
@@ -0,0 +1,35 @@
+# Copyright (c) 2012 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+# -----------------------------------------------------------------------------
+# OSExport/Distro/Centos.pm
+# - provides CentOS Linux specific overrides of the OSExport Distro API.
+# -----------------------------------------------------------------------------
+package OpenSLX::OSExport::Distro::Centos;
+
+use strict;
+use warnings;
+
+use base qw(OpenSLX::OSExport::Distro::Rhel);
+
+use OpenSLX::Basics;
+
+################################################################################
+### implementation
+################################################################################
+sub new
+{
+ my $class = shift;
+ my $self = {
+ 'base-name' => 'centos',
+ };
+ return bless $self, $class;
+}
+
+1;
diff --git a/src/installer/OpenSLX/OSExport/Distro/Rhel.pm b/src/installer/OpenSLX/OSExport/Distro/Rhel.pm
new file mode 100644
index 00000000..a2cd9a86
--- /dev/null
+++ b/src/installer/OpenSLX/OSExport/Distro/Rhel.pm
@@ -0,0 +1,94 @@
+# Copyright (c) 2012 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+# -----------------------------------------------------------------------------
+# OSExport/Distro/Rhel.pm
+# - provides RHEL specific overrides of the OSExport Distro API.
+# -----------------------------------------------------------------------------
+package OpenSLX::OSExport::Distro::Rhel;
+
+use strict;
+use warnings;
+
+use base qw(OpenSLX::OSExport::Distro::Base);
+
+use OpenSLX::Basics;
+
+################################################################################
+### implementation
+################################################################################
+sub new
+{
+ my $class = shift;
+ my $self = {
+ 'base-name' => 'rhel',
+ };
+ return bless $self, $class;
+}
+
+sub initDistroInfo
+{
+ my $self = shift;
+
+ $self->{'export-filter'} = "
+ - /var/tmp/*
+ - /var/spool/*
+ - /var/run/*
+ - /var/mail
+ - /var/log/*
+ - /var/lock/*
+ - /var/lib/xdm
+ - /var/lib/vm*
+ - /var/lib/suspend*
+ - /var/lib/smart
+ - /var/lib/gdm/*
+ - /var/lib/dhcp*
+ - /var/lib/bluetooth/
+ - /var/cache/yum
+ - /var/cache/man/*
+ - /var/cache/zypp/*
+ + /usr/lib/python*/*/*.o
+ + /usr/lib/perl5/*/*/*/*.o
+ + /usr/lib/gcc/*/*/*.o
+ + /usr/lib/*.o
+ + /usr/X11R6/lib/modules/drivers/*.o
+ + /usr/X11R6/lib/modules/drivers/linux/*.o
+ - /usr/bin/BackGround
+ - /tmp/*
+ - /sys/*
+ - /proc/*
+ - /opt/kde3/share/apps/kdm/read_sysconfig.sh
+ - /opt/kde3/share/autostart/runupdater.desktop
+ - /opt/kde3/share/autostart/profile_chooser-autostart.desktop
+ - /opt/kde3/share/autostart/kinternet.desktop
+ - /usr/share/gnome/autostart/gpk-update-icon*.desktop
+ - /mnt/*
+ - /media/*
+ + /media
+ + /lib/modules/*/misc/vmblock.o
+ + /lib/modules/*/misc/vmnet.o
+ + /lib/modules/*/misc/vmmon.o
+ - /etc/*rpmnew
+ - /etc/*rpmorig
+ - /etc/*pptp*
+ - /etc/*ppp*
+ - /etc/dhcp*
+ - /etc/cron.*/*
+ - /etc/netplug*
+ - /etc/sysconfig/network-scripts/ifcfg-*
+ - /etc/X11/xkb
+ - /boot/initrd*
+ - /boot/grub
+ - *.rpmsave
+ - *.rpmnew
+ ";
+ return;
+}
+
+1;
diff --git a/src/installer/OpenSLX/OSExport/Distro/Scientific.pm b/src/installer/OpenSLX/OSExport/Distro/Scientific.pm
new file mode 100644
index 00000000..3c239d52
--- /dev/null
+++ b/src/installer/OpenSLX/OSExport/Distro/Scientific.pm
@@ -0,0 +1,35 @@
+# Copyright (c) 2012 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+# -----------------------------------------------------------------------------
+# OSExport/Distro/Scientific.pm
+# - provides Scientific Linux specific overrides of the OSExport Distro API.
+# -----------------------------------------------------------------------------
+package OpenSLX::OSExport::Distro::Scientific;
+
+use strict;
+use warnings;
+
+use base qw(OpenSLX::OSExport::Distro::Rhel);
+
+use OpenSLX::Basics;
+
+################################################################################
+### implementation
+################################################################################
+sub new
+{
+ my $class = shift;
+ my $self = {
+ 'base-name' => 'scientific',
+ };
+ return bless $self, $class;
+}
+
+1;
diff --git a/src/installer/OpenSLX/OSSetup/Distro/Centos.pm b/src/installer/OpenSLX/OSSetup/Distro/Centos.pm
new file mode 100644
index 00000000..f98f19e6
--- /dev/null
+++ b/src/installer/OpenSLX/OSSetup/Distro/Centos.pm
@@ -0,0 +1,27 @@
+# Copyright (c) 2012 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+# -----------------------------------------------------------------------------
+# OSSetup/Distro/Centos.pm
+# - provides CentOS Linux specific overrides of the OSSetup Distro API.
+# -----------------------------------------------------------------------------
+package OpenSLX::OSSetup::Distro::Centos;
+
+use strict;
+use warnings;
+
+use base qw(OpenSLX::OSSetup::Distro::Rhel);
+
+use OpenSLX::Basics;
+
+################################################################################
+### interface methods
+################################################################################
+
+1;
diff --git a/src/installer/OpenSLX/OSSetup/Distro/Rhel.pm b/src/installer/OpenSLX/OSSetup/Distro/Rhel.pm
new file mode 100644
index 00000000..151542ee
--- /dev/null
+++ b/src/installer/OpenSLX/OSSetup/Distro/Rhel.pm
@@ -0,0 +1,48 @@
+# Copyright (c) 2012 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+# -----------------------------------------------------------------------------
+# OSSetup/Distro/Rhel.pm
+# - provides RHEL specific overrides of the OSSetup Distro API.
+# -----------------------------------------------------------------------------
+package OpenSLX::OSSetup::Distro::Rhel;
+
+use strict;
+use warnings;
+
+use base qw(OpenSLX::OSSetup::Distro::Base);
+
+use OpenSLX::Basics;
+
+################################################################################
+### interface methods
+################################################################################
+sub new
+{
+ my $class = shift;
+ my $self = {};
+ return bless $self, $class;
+}
+
+sub initialize
+{
+ my $self = shift;
+ my $engine = shift;
+
+ $self->SUPER::initialize($engine);
+ $self->{'packager-type'} = 'rpm';
+ $self->{'meta-packager-type'} = $ENV{SLX_META_PACKAGER} || 'yum';
+ $self->{'stage1c-faked-files'} = [
+ '/etc/fstab',
+ '/etc/mtab',
+ ];
+ return;
+}
+
+1;
diff --git a/src/installer/OpenSLX/OSSetup/Distro/Scientific.pm b/src/installer/OpenSLX/OSSetup/Distro/Scientific.pm
new file mode 100644
index 00000000..c8f0364c
--- /dev/null
+++ b/src/installer/OpenSLX/OSSetup/Distro/Scientific.pm
@@ -0,0 +1,27 @@
+# Copyright (c) 2012 - OpenSLX GmbH
+#
+# This program is free software distributed under the GPL version 2.
+# See http://openslx.org/COPYING
+#
+# If you have any feedback please consult http://openslx.org/feedback and
+# send your suggestions, praise, or complaints to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org/
+# -----------------------------------------------------------------------------
+# OSSetup/Distro/Scientific.pm
+# - provides Scientific Linux specific overrides of the OSSetup Distro API.
+# -----------------------------------------------------------------------------
+package OpenSLX::OSSetup::Distro::Scientific;
+
+use strict;
+use warnings;
+
+use base qw(OpenSLX::OSSetup::Distro::Rhel);
+
+use OpenSLX::Basics;
+
+################################################################################
+### interface methods
+################################################################################
+
+1;
diff --git a/src/installer/OpenSLX/OSSetup/Engine.pm b/src/installer/OpenSLX/OSSetup/Engine.pm
index 1ad30ba4..2a4463e5 100644
--- a/src/installer/OpenSLX/OSSetup/Engine.pm
+++ b/src/installer/OpenSLX/OSSetup/Engine.pm
@@ -1,4 +1,4 @@
-# Copyright (c) 2006..2011 - OpenSLX GmbH
+# Copyright (c) 2006..2012 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -39,6 +39,8 @@ use OpenSLX::Utils;
use vars qw(%supportedDistros);
%supportedDistros = (
+ 'centos-5' => 'clone,update,shell',
+ 'centos-6' => 'clone,update,shell',
'debian-3.1' => 'clone,install,update,shell',
'debian-4.0' => 'clone,install,update,shell',
'debian-4.0_amd64' => 'clone,install,update,shell',
@@ -47,6 +49,13 @@ use vars qw(%supportedDistros);
'fedora-15_x86_64' => 'clone,update,shell',
'fedora-16' => 'clone,update,shell',
'gentoo-2007.X' => 'clone',
+ 'linuxmint-10' => 'clone,update,shell',
+ 'linuxmint-11' => 'clone,update,shell',
+ 'linuxmint-12' => 'clone,update,shell',
+ 'rhel-5' => 'clone,update,shell',
+ 'rhel-6' => 'clone,update,shell',
+ 'scientific-5' => 'clone,update,shell',
+ 'scientific-6' => 'clone,update,shell',
'suse-10.1' => 'clone,install,update,shell',
'suse-10.1_x86_64' => 'clone,install,update,shell',
'suse-10.2' => 'clone,install,update,shell',
@@ -82,9 +91,6 @@ use vars qw(%supportedDistros);
'ubuntu-11.04' => 'clone,install,update,shell',
'ubuntu-11.10' => 'clone,install,update,shell',
'ubuntu-12.04' => 'clone,install,update,shell',
- 'linuxmint-10' => 'clone,update,shell',
- 'linuxmint-11' => 'clone,update,shell',
- 'linuxmint-12' => 'clone,update,shell',
);
my %localHttpServers;