Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Eesaan Atluri
hpc-factory
Commits
f843f1c0
Commit
f843f1c0
authored
5 months ago
by
Eesaan Atluri
Browse files
Options
Downloads
Patches
Plain Diff
feat: Add params to define the autofs mountpoints
Closes
rc/hpc-factory#173
parent
5f3cdb39
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/group_vars/all
+9
-0
9 additions, 0 deletions
ansible/group_vars/all
ansible/roles/nfs_mounts/tasks/autofs.yml
+10
-16
10 additions, 16 deletions
ansible/roles/nfs_mounts/tasks/autofs.yml
with
19 additions
and
16 deletions
ansible/group_vars/all
+
9
−
0
View file @
f843f1c0
...
...
@@ -33,6 +33,14 @@
mount_points:
- { "src": "master:/gpfs4", "path": "/gpfs4", "opts": "ro,sync,hard", "mode": "0755" }
- { "src": "master:/gpfs5", "path": "/gpfs5", "opts": "ro,sync,hard", "mode": "0755" }
autofs_mounts:
- { mount_point: "/cm/shared", map_name: "cm-share", dir: /cm/shared, mode: '0755', key: "*", src: "gpfs.rc.uab.edu:/data/cm/shared-8.2/&", opts: "fstype=nfs,vers=3,_netdev,defaults" }
- { mount_point: "/data/project", map_name: "data-project", dir: /data/project, mode: '0755', key: "*", src: "gpfs.rc.uab.edu:/data/project/&", opts: "fstype=nfs,vers=3,_netdev,defaults" }
- { mount_point: "/data/user", map_name: "data-user", dir: /data/user, mode: '0755', key: "*", src: "gpfs.rc.uab.edu:/data/user/&", opts: "fstype=nfs,vers=3,_netdev,local_lock=posix,defaults" }
- { mount_point: "/data/rc/apps", map_name: "data-rc-apps", dir: /data/rc/apps, mode: '0755', key: "*", src: "gpfs.rc.uab.edu:/data/rc/apps/&", opts: "fstype=nfs,vers=3,_netdev,defaults" }
- { mount_point: "/-", map_name: "scratch", dir: /scratch, mode: '0755', key: "/scratch", src: "gpfs.rc.uab.edu:/scratch", opts: "fstype=nfs,vers=3,_netdev,local_lock=posix,defaults" }
- { mount_point: "/home", map_name: "home", key: "*", src: ":/data/user/home/&", opts: 'fstype=bind' }
#SSH Host Keys
S3_ENDPOINT: ""
...
...
@@ -62,3 +70,4 @@
ssl_cert_chain_file: ""
ssl_apache_config: ""
apache_service: "httpd"
This diff is collapsed.
Click to expand it.
ansible/roles/nfs_mounts/tasks/autofs.yml
+
10
−
16
View file @
f843f1c0
...
...
@@ -6,11 +6,15 @@
mode
:
"
{{
item.mode
}}"
loop
:
-
{
dir
:
/local
,
mode
:
'
0777'
}
-
{
dir
:
/scratch
,
mode
:
'
0755'
}
-
{
dir
:
/share
,
mode
:
'
0755'
}
-
{
dir
:
/data/rc/apps
,
mode
:
'
0755'
}
# this is only required for the symlink to be happy
-
{
dir
:
/data/user
,
mode
:
'
0755'
}
-
{
dir
:
/data/project
,
mode
:
'
0755'
}
-
name
:
Create mountpoint dirs
ansible.builtin.file
:
path
:
"
{{
item.dir
}}"
state
:
directory
mode
:
"
{{
item.mode
}}"
loop
:
"
{{
autofs_mounts
}}"
-
name
:
Remove unused entry in master map
ansible.builtin.replace
:
...
...
@@ -29,12 +33,7 @@
line
:
"
{{
item.mount_point
}}
/etc/auto.{{
item.map_name
}}"
create
:
yes
loop
:
-
{
mount_point
:
"
/cm/shared"
,
map_name
:
"
cm-share"
}
-
{
mount_point
:
"
/data/project"
,
map_name
:
"
data-project"
}
-
{
mount_point
:
"
/data/user"
,
map_name
:
"
data-user"
}
-
{
mount_point
:
"
/data/rc/apps"
,
map_name
:
"
data-rc-apps"
}
-
{
mount_point
:
"
/-"
,
map_name
:
"
scratch"
}
-
{
mount_point
:
"
/home"
,
map_name
:
"
home"
}
"
{{
autofs_mounts
}}"
-
name
:
Set up autofs map files
ansible.builtin.lineinfile
:
...
...
@@ -42,12 +41,7 @@
line
:
"
{{
item.key
}}
-{{
item.opts
}}
{{
item.src
}}"
create
:
true
loop
:
-
{
map_name
:
"
cm-share"
,
key
:
"
*"
,
src
:
"
gpfs.rc.uab.edu:/data/cm/shared-8.2/&"
,
opts
:
"
fstype=nfs,vers=3,_netdev,defaults"
}
-
{
map_name
:
"
data-project"
,
key
:
"
*"
,
src
:
"
gpfs.rc.uab.edu:/data/project/&"
,
opts
:
"
fstype=nfs,vers=3,_netdev,defaults"
}
-
{
map_name
:
"
data-user"
,
key
:
"
*"
,
src
:
"
gpfs.rc.uab.edu:/data/user/&"
,
opts
:
"
fstype=nfs,vers=3,_netdev,local_lock=posix,defaults"
}
-
{
map_name
:
"
data-rc-apps"
,
key
:
"
*"
,
src
:
"
gpfs.rc.uab.edu:/data/rc/apps/&"
,
opts
:
"
fstype=nfs,vers=3,_netdev,defaults"
}
-
{
map_name
:
"
scratch"
,
key
:
"
/scratch"
,
src
:
"
gpfs.rc.uab.edu:/scratch"
,
opts
:
"
fstype=nfs,vers=3,_netdev,local_lock=posix,defaults"
}
-
{
map_name
:
"
home"
,
key
:
"
*"
,
src
:
"
:/data/user/home/&"
,
opts
:
'
fstype=bind'
}
"
{{
autofs_mounts
}}"
-
name
:
Create symbolic links
ansible.builtin.file
:
...
...
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