-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from rancherfederal/aceeric-tarball-upgrade
Adding Tarball upgrade capability
- Loading branch information
Showing
15 changed files
with
253 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
exclude_paths: | ||
- .github/ | ||
- molecule/ | ||
- .ansible-lint | ||
- .github/ | ||
- molecule/ | ||
- .ansible-lint | ||
warn_list: | ||
- no-handler | ||
- var-spacing | ||
- var-naming | ||
skip_list: | ||
- experimental | ||
- fqcn-builtins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: CentOS 7 | ||
name: Lint Test | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
|
||
- name: "Calculate rke2 full version" | ||
when: ( install_rke2_version is not defined ) or ( install_rke2_version | length == 0 ) | ||
block: | ||
- name: Stop if the provided is not valid | ||
fail: | ||
msg: "Provided channel is not valid" | ||
when: rke2_channel not in channels | ||
|
||
- name: Get full version name url | ||
uri: | ||
url: https://update.rke2.io/v1-release/channels/{{ rke2_channel }} | ||
follow_redirects: safe | ||
remote_src: true | ||
register: rke2_version_url | ||
|
||
- name: Set full version name | ||
shell: set -o pipefail && echo {{ rke2_version_url.url }} | sed -e 's|.*/||' | ||
register: rke2_full_version | ||
changed_when: false | ||
args: | ||
executable: /usr/bin/bash | ||
|
||
- name: Set rke2_full_version fact | ||
set_fact: | ||
rke2_full_version: "{{ rke2_full_version.stdout if ((install_rke2_version is not defined) or (install_rke2_version|length == 0)) else install_rke2_version }}" # yamllint disable-line rule:line-length | ||
|
||
- name: Set dot version | ||
shell: set -o pipefail && echo {{ rke2_full_version }} | /usr/bin/cut -d'+' -f1 | ||
register: rke2_version_dot_tmp | ||
changed_when: false | ||
args: | ||
executable: /usr/bin/bash | ||
|
||
- name: Set rke2_version_dot fact | ||
set_fact: | ||
rke2_version_dot: "{{ rke2_version_dot_tmp.stdout }}" | ||
|
||
- name: Set Maj.Min version | ||
shell: set -o pipefail && echo {{ rke2_full_version }} | /bin/awk -F'.' '{ print $1"."$2 }' | sed "s|^v||g" | ||
register: rke2_version_majmin_tmp | ||
changed_when: false | ||
args: | ||
executable: /usr/bin/bash | ||
|
||
- name: Set rke2_version_majmin fact | ||
set_fact: | ||
rke2_version_majmin: "{{ rke2_version_majmin_tmp.stdout }}" | ||
|
||
- name: Set RPM version | ||
shell: set -o pipefail && echo {{ rke2_full_version }} | sed -E -e "s/[\+-]/~/g" | sed -E -e "s/v(.*)/\1/" | ||
register: rke2_version_rpm_tmp | ||
changed_when: false | ||
args: | ||
executable: /usr/bin/bash | ||
|
||
- name: Set rke2_version_rpm fact | ||
set_fact: | ||
rke2_version_rpm: "{{ rke2_version_rpm_tmp.stdout }}" | ||
|
||
- name: Describe versions | ||
debug: | ||
msg: | ||
- "Full version, with revision indication: {{ rke2_full_version }}" | ||
- "Version without revision indication: {{ rke2_version_dot }}" | ||
- "Major and Minor Only: {{ rke2_version_majmin }}" | ||
- "RPM Version (tilde): {{ rke2_version_rpm }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.