Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
samba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
infra
ansible-shared
samba
Commits
1c4a8edb
Commit
1c4a8edb
authored
8 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
nfs-client: configure nfs-common service
parent
3e299b1d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nfs-client/files/nfs-common
+19
-0
19 additions, 0 deletions
nfs-client/files/nfs-common
nfs-client/tasks/main.yml
+23
-14
23 additions, 14 deletions
nfs-client/tasks/main.yml
with
42 additions
and
14 deletions
nfs-client/files/nfs-common
0 → 100644
+
19
−
0
View file @
1c4a8edb
# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid alternatives
# for the NEED_ options are "yes" and "no".
# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=no
# Options for rpc.statd.
# Should rpc.statd listen on a specific port? This is especially useful
# when you have a port-based firewall. To use a fixed port, set this
# this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
# For more information, see rpc.statd(8) or http://wiki.debian.org/SecuringNFS
STATDOPTS=
# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=yes
# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=yes
This diff is collapsed.
Click to expand it.
nfs-client/tasks/main.yml
+
23
−
14
View file @
1c4a8edb
...
@@ -12,20 +12,29 @@
...
@@ -12,20 +12,29 @@
-
nfs-client
-
nfs-client
-
packages
-
packages
#- name: ensure we use the idmapper
-
name
:
ensure the nfs-common service is configured for nfs4
# copy: content="N" dest=/sys/module/nfs/parameters/nfs4_disable_idmapping
copy
:
src=nfs-common dest=/etc/default/nfs-common owner=root group=root mode=0644
# notify:
notify
:
# - restart nfs-common
-
restart nfs-common
# - restart autofs
-
restart autofs
# tags:
tags
:
# - nfs-client
-
nfs-client
# - config
-
config
#
#- name: ensure we use the idmapper after a reboot
-
name
:
ensure we use the idmapper
# copy: src=modprobe-nfs.conf dest=/etc/modprobe.d/nfs.conf owner=root group=root mode=0644
copy
:
content="N" dest=/sys/module/nfs/parameters/nfs4_disable_idmapping
# tags:
notify
:
# - nfs-client
-
restart nfs-common
# - config
-
restart autofs
tags
:
-
nfs-client
-
config
-
name
:
ensure we use the idmapper after a reboot
copy
:
src=modprobe-nfs.conf dest=/etc/modprobe.d/nfs.conf owner=root group=root mode=0644
tags
:
-
nfs-client
-
config
-
name
:
ensure the kernel key storage quote used for idmapping is sufficiently high
-
name
:
ensure the kernel key storage quote used for idmapping is sufficiently high
sysctl
:
name=kernel.keys.root_maxkeys state=present value=1000
# default is 200, this quote was reached
sysctl
:
name=kernel.keys.root_maxkeys state=present value=1000
# default is 200, this quote was reached
...
...
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