summaryrefslogtreecommitdiffstats
path: root/src/installer/OpenSLX/OSSetup
diff options
context:
space:
mode:
Diffstat (limited to 'src/installer/OpenSLX/OSSetup')
-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
4 files changed, 112 insertions, 4 deletions
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;