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
513f38b6
Commit
513f38b6
authored
6 years ago
by
Gin Tan
Browse files
Options
Downloads
Plain Diff
Merge branch '20181019_2' into 'master'
20181019 2 See merge request hpc-team/ansible_cluster_in_a_box!212
parents
1a442c78
0237a52f
No related branches found
No related tags found
1 merge request
!212
20181019 2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
roles/config_repos/tasks/main.yml
+1
-5
1 addition, 5 deletions
roles/config_repos/tasks/main.yml
roles/mellanox_drivers/tasks/main.yml
+10
-3
10 additions, 3 deletions
roles/mellanox_drivers/tasks/main.yml
roles/upgrade/tasks/main.yml
+8
-0
8 additions, 0 deletions
roles/upgrade/tasks/main.yml
with
19 additions
and
8 deletions
roles/config_repos/tasks/main.yml
+
1
−
5
View file @
513f38b6
...
...
@@ -43,11 +43,7 @@
check_mode
:
no
-
name
:
disable unwanted repos
shell
:
yum-config-manager --disable {{ item }}
# yum_repository:
# name: "{{ item }}"
# enabled: False
# state: 'absent'
shell
:
yum-config-manager --disable "{{ item }}"
with_items
:
"
{{repolist.stdout_lines|difference(yumenablerepo)}}"
become
:
true
become_user
:
root
...
...
This diff is collapsed.
Click to expand it.
roles/mellanox_drivers/tasks/main.yml
+
10
−
3
View file @
513f38b6
...
...
@@ -9,29 +9,33 @@
when
:
ansible_os_family == "RedHat"
-
name
:
test for existing installation of drivers
command
:
ibv_devinfo
shell
:
'
/bin/
ibv_devinfo
'
become
:
true
become_user
:
root
register
:
drivers_installed
ignore_errors
:
true
check_mode
:
no
-
name
:
debug - print out installed driver
debug
:
var=drivers_installed
-
name
:
default dont install
set_fact
:
install_now
:
false
reboot_now
:
false
-
name
:
get driver version
command
:
'
ofed_info
-l
|
head
-n
1
|
cut
-f
1
-d
"
"'
shell
:
'
/bin/
ofed_info
-l
|
head
-n
1
|
cut
-f
1
-d
"
"'
register
:
driver_version
ignore_errors
:
true
check_mode
:
no
changed_when
:
False
-
name
:
get desired driver version
shell
:
'
echo
{{
MELLANOX_DRIVER_SRC
}}
|
cut
-f
1,2,3
-d
"-"'
register
:
desired_driver_version
check_mode
:
no
changed_when
:
False
-
name
:
set install due to drivers not installed
set_fact
:
...
...
@@ -51,6 +55,9 @@
reboot_now
:
true
when
:
driver_version | failed or not desired_driver_version.stdout in driver_version.stdout
-
name
:
debug - print out value of install_now
debug
:
var=install_now
-
name
:
copy driver source
unarchive
:
copy=no src="http://consistency0/src/{{ MELLANOX_DRIVER_SRC }}.tgz" dest=/tmp
become
:
true
...
...
This diff is collapsed.
Click to expand it.
roles/upgrade/tasks/main.yml
+
8
−
0
View file @
513f38b6
...
...
@@ -23,6 +23,12 @@
become_user
:
root
when
:
ansible_os_family=="RedHat" and yumdisablerepo is defined
-
name
:
Clear yum pending transaction
command
:
yum-complete-transaction --cleanup-only
become
:
true
become_user
:
root
when
:
ansible_os_family == 'RedHat'
-
name
:
yum upgrade
yum
:
name=* state=latest
become
:
true
...
...
@@ -46,11 +52,13 @@
register
:
rpm_q_output
when
:
ansible_os_family=="RedHat"
check_mode
:
no
changed_when
:
False
-
name
:
get kernel version
shell
:
uname -r
register
:
uname_r_output
check_mode
:
no
changed_when
:
False
-
name
:
default dont reboot
set_fact
:
...
...
This diff is collapsed.
Click to expand it.
Gin Tan
@gintan
mentioned in commit
df15194d
·
4 years ago
mentioned in commit
df15194d
mentioned in commit df15194df1047f96796d110001100bf39b5fd2db
Toggle commit list
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