Skip to content
Snippets Groups Projects
Commit 4a510d47 authored by Kevin Hall's avatar Kevin Hall
Browse files

wheezy and above need rpcbind isntead of portmap

parent 8c3e75a3
No related branches found
No related tags found
No related merge requests found
......@@ -9,45 +9,54 @@ class base::portmap {
case $::operatingsystem {
'redhat': {
include base::xinetd
include base::xinetd
case $::lsbdistcodename {
case $::lsbdistcodename {
'santiago': {
package { 'rpcbind': ensure => present }
service { 'rpcbind': ensure => running }
}
default: {
package { 'portmap': ensure => present }
'santiago': {
package { 'rpcbind': ensure => present }
service { 'rpcbind': ensure => running }
}
default: {
package { 'portmap': ensure => present }
# Ensure service is running. Also notify xinetd in case the
# services need to be re-registered with the portmap.
service { 'portmap':
ensure => running,
enable => true,
hasstatus => true,
require => Package['portmap'],
restart => '/etc/init.d/portmap restart',
notify => Service['xinetd'],
}
}# rhel4/5
}
# Ensure service is running. Also notify xinetd in case the
# services need to be re-registered with the portmap.
service { 'portmap':
ensure => running,
enable => true,
hasstatus => true,
require => Package['portmap'],
restart => '/etc/init.d/portmap restart',
notify => Service['xinetd'],
}
}# rhel4/5
}
}
'debian': {
package { 'portmap': ensure => present }
service{ 'portmap':
case $::lsbdistcodename {
'squeeze': {
package { 'portmap': ensure => present }
service{ 'portmap':
ensure => running,
enable => true,
hasstatus => false,
status => 'pidof portmap',
require => Package['portmap'],
restart => '/etc/init.d/portmap restart',
}
}
default: {
package { 'rpcbind': ensure => present }
service { 'rpcbind': ensure => running }
}
}
}
# Ubuntu 11.10 switched to "rpcbind" like EL6
'ubuntu': {
package { 'rpcbind': ensure => present }
service { 'portmap': ensure => running }
service { 'rpcbind': ensure => running }
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment