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
Bo-Chun Chen
hpc-factory
Commits
babdc4c8
Commit
babdc4c8
authored
2 years ago
by
Eesaan Atluri
Committed by
Bo-Chun Chen
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move the nfs_mount related tasks into a separate role
parent
ca201e74
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
ansible/roles/cheaha.node/tasks/main.yml
+0
-36
0 additions, 36 deletions
ansible/roles/cheaha.node/tasks/main.yml
ansible/roles/nfs_mounts/tasks/main.yml
+37
-0
37 additions, 0 deletions
ansible/roles/nfs_mounts/tasks/main.yml
with
37 additions
and
36 deletions
ansible/roles/cheaha.node/tasks/main.yml
+
0
−
36
View file @
babdc4c8
...
@@ -40,42 +40,6 @@
...
@@ -40,42 +40,6 @@
-
ruby
-
ruby
-
python3
-
python3
state
:
present
state
:
present
-
name
:
Create base directories
ansible.builtin.file
:
path
:
"
{{
item.dir
}}"
state
:
directory
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
:
Set up NFS GPFS mount point(s)
ansible.posix.mount
:
path
:
"
{{
item.path
}}"
src
:
"
{{
item.src
}}"
fstype
:
"
{{
item.fstype
}}"
opts
:
"
{{
item.opts
}}"
state
:
present
loop
:
-
{
path
:
/cm/shared
,
src
:
"
gpfs.rc.uab.edu:/data/cm/shared-8.2"
,
fstype
:
nfs
,
opts
:
"
vers=3,_netdev,defaults"
}
-
{
path
:
/data/project
,
src
:
"
gpfs.rc.uab.edu:/data/project"
,
fstype
:
nfs
,
opts
:
"
vers=3,_netdev,defaults"
}
-
{
path
:
/data/user
,
src
:
"
gpfs.rc.uab.edu:/data/user"
,
fstype
:
nfs
,
opts
:
"
vers=3,_netdev,local_lock=posix,defaults"
}
-
{
path
:
/home
,
src
:
"
/data/user/home"
,
fstype
:
none
,
opts
:
bind
}
-
{
path
:
/data/rc/apps
,
src
:
"
gpfs.rc.uab.edu:/data/rc/apps"
,
fstype
:
nfs
,
opts
:
"
vers=3,_netdev,defaults"
}
-
name
:
Create symbolic links
ansible.builtin.file
:
src
:
"
{{
item.src
}}"
dest
:
"
{{
item.dest
}}"
owner
:
root
group
:
root
force
:
yes
state
:
link
loop
:
-
{
src
:
/local
,
dest
:
/scratch/local
}
-
{
src
:
/data/rc/apps
,
dest
:
/share/apps
}
-
name
:
Add ssh key for root access
-
name
:
Add ssh key for root access
ansible.posix.authorized_key
:
ansible.posix.authorized_key
:
user
:
root
user
:
root
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/nfs_mounts/tasks/main.yml
0 → 100644
+
37
−
0
View file @
babdc4c8
---
-
name
:
Create base directories
ansible.builtin.file
:
path
:
"
{{
item.dir
}}"
state
:
directory
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
:
Set up NFS GPFS mount point(s)
ansible.posix.mount
:
path
:
"
{{
item.path
}}"
src
:
"
{{
item.src
}}"
fstype
:
"
{{
item.fstype
}}"
opts
:
"
{{
item.opts
}}"
state
:
present
loop
:
-
{
path
:
/cm/shared
,
src
:
"
gpfs.rc.uab.edu:/data/cm/shared-8.2"
,
fstype
:
nfs
,
opts
:
"
_netdev,defaults"
}
-
{
path
:
/data/project
,
src
:
"
gpfs.rc.uab.edu:/data/project"
,
fstype
:
nfs
,
opts
:
"
_netdev,defaults"
}
-
{
path
:
/data/user
,
src
:
"
gpfs.rc.uab.edu:/data/user"
,
fstype
:
nfs
,
opts
:
"
_netdev,local_lock=posix,defaults"
}
-
{
path
:
/home
,
src
:
"
/data/user/home"
,
fstype
:
none
,
opts
:
bind
}
-
{
path
:
/data/rc/apps
,
src
:
"
gpfs.rc.uab.edu:/data/rc/apps"
,
fstype
:
nfs
,
opts
:
"
_netdev,defaults"
}
-
name
:
Create symbolic links
ansible.builtin.file
:
src
:
"
{{
item.src
}}"
dest
:
"
{{
item.dest
}}"
owner
:
root
group
:
root
force
:
yes
state
:
link
loop
:
-
{
src
:
/local
,
dest
:
/scratch/local
}
-
{
src
:
/data/rc/apps
,
dest
:
/share/apps
}
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