Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hpc-team
HPCasCode
Commits
b7162ab7
Commit
b7162ab7
authored
3 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
adding a role to mount from ceph
parent
14b47c53
No related branches found
Branches containing commit
No related tags found
1 merge request
!486
adding a role to mount from ceph
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/cephmount/tasks/main.yml
+43
-0
43 additions, 0 deletions
roles/cephmount/tasks/main.yml
with
43 additions
and
0 deletions
roles/cephmount/tasks/main.yml
0 → 100644
+
43
−
0
View file @
b7162ab7
---
-
name
:
install packages for ceph client Debian
package
:
name
:
ceph-common
state
:
present
become
:
true
when
:
ansible_os_family == "Debian"
-
name
:
install packages for ceph repo RHEL
package
:
name
:
centos-release-ceph-nautilus.noarch
state
:
present
become
:
true
register
:
cephrepoinstall
when
:
ansible_os_family == "RedHat"
-
name
:
install packages for ceph client Debian
yum
:
name
:
libcephfs2
update_cache
:
yes
state
:
present
become
:
true
when
:
ansible_os_family == "RedHat" and cephrepoinstall.changed
-
name
:
deploy secret file. this should not be hardcoded
lineinfile
:
path
:
/root/cephfs-dev-hpc.secret
line
:
"
{{
cephsecret_devhpc
}}"
owner
:
root
group
:
root
mode
:
'
0600'
create
:
yes
become
:
true
-
name
:
"
Mounting
ceph
mounts.
code
copied
from
nfs-client"
mount
:
name
:
"
{{
item.name
}}"
src
:
"
{{
item.ipv4
}}:{{
item.src
}}"
fstype
:
"
{{
item.fstype
}}"
opts
:
"
{{
item.opts
}}"
state
:
mounted
loop
:
"
{{
cephmounts
}}"
become
:
true
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