Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 3f16311

Browse files
committed
Merge pull request #114 from kraman/bugfix
Fix repository base for RHEL.
2 parents 9b7bf0e + aa39105 commit 3f16311

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

manifests/init.pp

+4-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,10 @@
351351
class openshift_origin (
352352
$roles = ['broker','node','activemq','datastore','named'],
353353
$install_method = 'yum',
354-
$repos_base = 'https://mirror.openshift.com/pub/origin-server/nightly/fedora-19',
354+
$repos_base = $::operatingsystem ? {
355+
'Fedora' => 'https://mirror.openshift.com/pub/origin-server/nightly/fedora-19',
356+
default => 'https://mirror.openshift.com/pub/origin-server/nightly/rhel-6',
357+
},
355358
$override_install_repo = undef,
356359
$os_repo = undef,
357360
$os_updates_repo = undef,

manifests/modprobe.pp

+9-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
}
2222
}
2323
default: {
24+
file { '/etc/sysconfig/modules/bridge.modules':
25+
content => "#!/bin/bash\nexec /sbin/modprobe bridge >/dev/null 2>&1",
26+
mode => '700',
27+
}
28+
29+
exec { 'load bridge module':
30+
command => '/sbin/modprobe bridge',
31+
}
2432
}
2533
}
26-
}
34+
}

manifests/node.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
}
6565

6666
augeas { 'Tune Sysctl knobs':
67-
context => "/files/etc/sysctl.conf",
68-
changes => [
67+
context => "/files/etc/sysctl.conf",
68+
changes => [
6969
# Increase kernel semaphores to accomodate many httpds.
7070
"set kernel.sem '250 32000 32 4096'",
7171

@@ -87,7 +87,7 @@
8787
"set kernel.msgmnb 65536",
8888
"set kernel.msgmax 65536",
8989
],
90-
notify => Exec['Reload sysctl']
90+
notify => Exec['Reload sysctl'],
9191
}
9292

9393
# Reload sysctl.conf to get the new settings.

0 commit comments

Comments
 (0)