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
658b3d7e
Commit
658b3d7e
authored
8 years ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.fsmpi.rwth-aachen.de:infra/ansible
parents
26a7dd17
15877af7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nfs-client/handlers/main.yml
+6
-0
6 additions, 0 deletions
nfs-client/handlers/main.yml
nfs-client/tasks/main.yml
+32
-0
32 additions, 0 deletions
nfs-client/tasks/main.yml
with
38 additions
and
0 deletions
nfs-client/handlers/main.yml
+
6
−
0
View file @
658b3d7e
...
...
@@ -3,3 +3,9 @@
-
name
:
restart autofs
service
:
name=autofs state=restarted
-
name
:
restart nfs-common
service
:
name=nfs-common state=restarted
-
name
:
reload sysfs.conf
service
:
name=sysfsutils state=restarted
This diff is collapsed.
Click to expand it.
nfs-client/tasks/main.yml
+
32
−
0
View file @
658b3d7e
...
...
@@ -10,13 +10,40 @@
-
name
:
ensure CIFS utils are installed
apt
:
name=cifs-utils,smbclient state=latest
tags
:
-
nfs-client
-
cifs-client
-
packages
-
name
:
ensure sysfs-utils are installed
apt
:
name=sysfsutils state=present
tags
:
-
nfs-client
-
packages
-
name
:
ensure we use the idmapper
command
:
'
echo
"N"
>
/sys/module/nfs/parameters/nfs4_disable_idmapping'
notify
:
-
restart nfs-common
tags
:
-
nfs-client
-
sysfs
-
config
-
name
:
ensure we use the idmapper after a reboot
lineinfile
:
line="module/nfs/parameters/nfs4_disable_idmapping = N" dest=/etc/sysfs.conf create=yes
notify
:
-
reload sysfs.conf
-
restart nfs-common
tags
:
-
nfs-client
-
sysfs
-
config
# makes life much easier to have an automounter and not /etc/fstab
-
name
:
ensure automounter is installed
apt
:
name=autofs state=latest
tags
:
-
nfs-client
-
autofs
-
packages
...
...
@@ -25,12 +52,14 @@
notify
:
-
restart autofs
tags
:
-
nfs-client
-
autofs
-
config
-
name
:
ensure mounts from central storage are available
template
:
src=auto.nfs.j2 dest=/etc/auto.nfs owner=root group=root mode=0644
notify
:
-
nfs-client
-
restart autofs
tags
:
-
autofs
...
...
@@ -39,18 +68,21 @@
-
name
:
ensure automounter is enabled
service
:
name=autofs state=running enabled=yes
tags
:
-
nfs-client
-
autofs
-
service
-
name
:
ensure linking of home
script
:
create_netdir.sh home
tags
:
-
nfs-client
-
fsmpi
-
autofs
-
name
:
ensure linking of pub
script
:
create_netdir.sh pub
tags
:
-
nfs-client
-
fsmpi
-
autofs
...
...
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