Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppetpublic
base
Commits
c7107c90
"git@code.stanford.edu:suitpuppet/su_ldap.git" did not exist on "fe1cba6483032e134dfc9cd4486e681677199837"
Commit
c7107c90
authored
11 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
move portmap to base
parent
e80a6b1e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/portmap.pp
+53
-0
53 additions, 0 deletions
manifests/portmap.pp
manifests/rstatd.pp
+1
-1
1 addition, 1 deletion
manifests/rstatd.pp
with
54 additions
and
1 deletion
manifests/portmap.pp
0 → 100644
+
53
−
0
View file @
c7107c90
#
# Portmap service for Sun RPC. Needed on systems providing RPC services, such
# as NFS servers, and occasionally for other reasons.
# This class intentionally does not add iptables rules. You should add with
# server-specific iptables rules to allow only specific sites to talk to port
# 111.
class
base::portmap
{
case
$::operatingsystem
{
'redhat'
:
{
include
base::xinetd
case
$::lsbdistcodename
{
'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
}
}
'debian'
:
{
package
{
'portmap'
:
ensure
=>
present
}
service
{
'portmap'
:
ensure
=>
running
,
enable
=>
true
,
hasstatus
=>
false
,
status
=>
'pidof portmap'
,
require
=>
Package
[
'portmap'
],
restart
=>
'/etc/init.d/portmap restart'
,
}
}
# Ubuntu 11.10 switched to "rpcbind" like EL6
'ubuntu'
:
{
package
{
'rpcbind'
:
ensure
=>
present
}
service
{
'portmap'
:
ensure
=>
running
}
}
}
}
This diff is collapsed.
Click to expand it.
manifests/rstatd.pp
+
1
−
1
View file @
c7107c90
...
...
@@ -4,7 +4,7 @@
class
base::rstatd
{
include
base::xinetd
,
portmap
base::
portmap
case
$::operatingsystem
{
'redhat'
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment