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
6b2bcd78
Commit
6b2bcd78
authored
3 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
test for existing ucx_info before attempting to compile ucx
parent
2731eb49
No related branches found
No related tags found
1 merge request
!513
modifications to playbooks because 1. we're not using ldap 2. we're mounting...
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/slurm-common/tasks/installSlurmFromSource.yml
+60
-52
60 additions, 52 deletions
roles/slurm-common/tasks/installSlurmFromSource.yml
with
60 additions
and
52 deletions
roles/slurm-common/tasks/installSlurmFromSource.yml
+
60
−
52
View file @
6b2bcd78
-
name
:
define ucx_src_url
set_fact
:
ucx_src_url
:
"
http://consistency0/src/ucx_1_8_0.tar.gz"
when
:
ucx_src_url is not defined
-
name
:
define slurm_src_url
set_fact
:
slurm_src_url
:
"
http://consistency0/src/slurm-{{
slurm_version
}}.tar.bz2"
when
:
slurm_src_url is not defined
-
name
:
Create ucx directory if it does not exist
file
:
path
:
"
{{
ucx_src_dir
|
dirname
}}"
state
:
directory
owner
:
"
{{
ansible_user
}}"
group
:
root
mode
:
u=rwx,g=rx,o=rx
become
:
true
-
name
:
remove all install
file
:
...
...
@@ -54,50 +42,70 @@
stat
:
path="{{ slurm_dir }}/bin/srun"
register
:
stat_srun
-
name
:
define ucx_dir
set_fact
:
ucx_dir
:
"
/usr"
when
:
ucx_dir is not defined
-
name
:
stat ucx
stat
:
path
:
"
{{
ucx_dir
}}"
path
:
"
{{
ucx_dir
}}
/bin/ucx_info
"
register
:
stat_ucx
-
name
:
Create ucx directory if it does not exist
file
:
path
:
"
{{
ucx_dir
}}"
state
:
directory
owner
:
root
group
:
root
mode
:
u=rwx,g=rx,o=rx
become
:
true
when
:
not stat_ucx.stat.exists
-
name
:
download ucx
get_url
:
url
:
"
{{
ucx_src_url
}}"
checksum
:
"
{{
ucx_src_checksum
}}"
dest
:
"
{{
ucx_src_dir
|
dirname
}}/ucx_src"
when
:
ucx_src_checksum is defined
-
name
:
download ucx
get_url
:
url
:
"
{{
ucx_src_url
}}"
dest
:
"
{{
ucx_src_dir
|
dirname
}}/ucx_src"
when
:
ucx_src_checksum is not defined
-
name
:
unarchive ucx
unarchive
:
args
:
src
:
"
{{
ucx_src_dir
|
dirname
}}/ucx_src"
copy
:
no
dest
:
"
{{
ucx_src_dir
|
dirname
}}"
creates
:
"
{{
ucx_src_dir
}}"
become
:
true
register
:
newucx
-
name
:
install ucx
shell
:
"
./contrib/configure-release
--prefix={{
ucx_dir
}}
&&
make
-j8
&&
make
install"
args
:
chdir
:
"
{{
ucx_src_dir
}}"
creates
:
"
{{
ucx_dir
}}/bin/ucx_info"
become
:
true
# when
:
not stat_ucx.stat.exists
-
block
:
-
name
:
define ucx_src_url
set_fact
:
ucx_src_url
:
"
http://consistency0/src/ucx_1_8_0.tar.gz"
when
:
ucx_src_url is not defined
-
name
:
Create ucx directory if it does not exist
file
:
path
:
"
{{
ucx_src_dir
|
dirname
}}"
state
:
directory
owner
:
"
{{
ansible_user
}}"
group
:
root
mode
:
u=rwx,g=rx,o=rx
become
:
true
-
name
:
Create ucx directory if it does not exist
file
:
path
:
"
{{
ucx_dir
}}"
state
:
directory
owner
:
root
group
:
root
mode
:
u=rwx,g=rx,o=rx
become
:
true
when
:
not stat_ucx.stat.exists
-
name
:
download ucx
get_url
:
url
:
"
{{
ucx_src_url
}}"
checksum
:
"
{{
ucx_src_checksum
}}"
dest
:
"
{{
ucx_src_dir
|
dirname
}}/ucx_src"
when
:
ucx_src_checksum is defined
-
name
:
download ucx
get_url
:
url
:
"
{{
ucx_src_url
}}"
dest
:
"
{{
ucx_src_dir
|
dirname
}}/ucx_src"
when
:
ucx_src_checksum is not defined
-
name
:
unarchive ucx
unarchive
:
args
:
src
:
"
{{
ucx_src_dir
|
dirname
}}/ucx_src"
copy
:
no
dest
:
"
{{
ucx_src_dir
|
dirname
}}"
creates
:
"
{{
ucx_src_dir
}}"
become
:
true
register
:
newucx
-
name
:
install ucx
shell
:
"
./contrib/configure-release
--prefix={{
ucx_dir
}}
&&
make
-j8
&&
make
install"
args
:
chdir
:
"
{{
ucx_src_dir
}}"
creates
:
"
{{
ucx_dir
}}/bin/ucx_info"
become
:
true
# when
:
not stat_ucx.stat.exists
-
name
:
configure slurm centos
command
:
"
{{
slurm_src_dir
}}/configure
--prefix={{
slurm_dir
}}
--with-munge={{
munge_dir
}}
--enable-pam
--with-pmix={{
pmix_dir
}}
--with-ucx={{
ucx_dir
}}"
...
...
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