-
Notifications
You must be signed in to change notification settings - Fork 9
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 #107 from StackStorm/version_specific_deps_upgrade
Refactor the upgrade workflow to abstract the handling of dependencies upgrade
- Loading branch information
Showing
13 changed files
with
255 additions
and
6 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
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,29 @@ | ||
--- | ||
name: st2_pkg_upgrade_deps_el6 | ||
pack: st2ci | ||
description: Upgrade dependencies on el6 | ||
enabled: true | ||
runner_type: remote-shell-script | ||
entry_point: st2_pkg_upgrade_deps_el6.sh | ||
parameters: | ||
version: | ||
type: string | ||
default: '' | ||
description: Version to upgrade to | ||
position: 0 | ||
enterprise: | ||
type: boolean | ||
default: false | ||
position: 1 | ||
dir: | ||
immutable: true | ||
default: /home/stanley/ | ||
sudo: | ||
immutable: true | ||
default: false | ||
cmd: | ||
immutable: true | ||
default: "" | ||
kwarg_op: | ||
immutable: true | ||
default: "--" |
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,22 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
VERSION=$1 | ||
ENTERPRISE=$2 | ||
SHORT_VERSION=`echo ${VERSION} | cut -d "." -f1-2` | ||
|
||
if [ ${SHORT_VERSION} = "2.4" ] && [ ${ENTERPRISE} -eq 0 ]; then | ||
echo "Upgrading dependencies for 2.4 community" | ||
curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash - | ||
sudo yum clean all | ||
sudo yum update -y nodejs | ||
exit 0 | ||
fi | ||
|
||
if [ ${SHORT_VERSION} = "2.4" ] && [ ${ENTERPRISE} -eq 1 ]; then | ||
echo "Upgrading dependencies for 2.4 enterprise" | ||
sudo /opt/stackstorm/st2/bin/pip install \ | ||
--find-links /opt/stackstorm/share/wheels --no-index --quiet \ | ||
--upgrade st2-enterprise-auth-backend-ldap | ||
exit 0 | ||
fi |
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,29 @@ | ||
--- | ||
name: st2_pkg_upgrade_deps_el7 | ||
pack: st2ci | ||
description: Upgrade dependencies on el7 | ||
enabled: true | ||
runner_type: remote-shell-script | ||
entry_point: st2_pkg_upgrade_deps_el7.sh | ||
parameters: | ||
version: | ||
type: string | ||
default: '' | ||
description: Version to upgrade to | ||
position: 0 | ||
enterprise: | ||
type: boolean | ||
default: false | ||
position: 1 | ||
dir: | ||
immutable: true | ||
default: /home/stanley/ | ||
sudo: | ||
immutable: true | ||
default: false | ||
cmd: | ||
immutable: true | ||
default: "" | ||
kwarg_op: | ||
immutable: true | ||
default: "--" |
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,23 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
VERSION=$1 | ||
ENTERPRISE=$2 | ||
SHORT_VERSION=`echo ${VERSION} | cut -d "." -f1-2` | ||
|
||
if [ ${SHORT_VERSION} = "2.4" ] && [ ${ENTERPRISE} -eq 0 ]; then | ||
echo "Upgrading dependencies for 2.4 community" | ||
curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash - | ||
sudo yum clean all | ||
sudo rpm -e --nodeps npm | ||
sudo yum update -y nodejs | ||
exit 0 | ||
fi | ||
|
||
if [ ${SHORT_VERSION} = "2.4" ] && [ ${ENTERPRISE} -eq 1 ]; then | ||
echo "Upgrading dependencies for 2.4 enterprise" | ||
sudo /opt/stackstorm/st2/bin/pip install \ | ||
--find-links /opt/stackstorm/share/wheels --no-index --quiet \ | ||
--upgrade st2-enterprise-auth-backend-ldap | ||
exit 0 | ||
fi |
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,29 @@ | ||
--- | ||
name: st2_pkg_upgrade_deps_u14 | ||
pack: st2ci | ||
description: Upgrade dependencies on u14 | ||
enabled: true | ||
runner_type: remote-shell-script | ||
entry_point: st2_pkg_upgrade_deps_u14.sh | ||
parameters: | ||
version: | ||
type: string | ||
default: '' | ||
description: Version to upgrade to | ||
position: 0 | ||
enterprise: | ||
type: boolean | ||
default: false | ||
position: 1 | ||
dir: | ||
immutable: true | ||
default: /home/stanley/ | ||
sudo: | ||
immutable: true | ||
default: false | ||
cmd: | ||
immutable: true | ||
default: "" | ||
kwarg_op: | ||
immutable: true | ||
default: "--" |
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,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
VERSION=$1 | ||
ENTERPRISE=$2 | ||
SHORT_VERSION=`echo ${VERSION} | cut -d "." -f1-2` | ||
|
||
if [ ${SHORT_VERSION} = "2.4" ] && [ ${ENTERPRISE} -eq 0 ]; then | ||
echo "Upgrading dependencies for 2.4 community" | ||
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | ||
exit 0 | ||
fi |
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,29 @@ | ||
--- | ||
name: st2_pkg_upgrade_deps_u16 | ||
pack: st2ci | ||
description: Upgrade dependencies on u16 | ||
enabled: true | ||
runner_type: remote-shell-script | ||
entry_point: st2_pkg_upgrade_deps_u16.sh | ||
parameters: | ||
version: | ||
type: string | ||
default: '' | ||
description: Version to upgrade to | ||
position: 0 | ||
enterprise: | ||
type: boolean | ||
default: false | ||
position: 1 | ||
dir: | ||
immutable: true | ||
default: /home/stanley/ | ||
sudo: | ||
immutable: true | ||
default: false | ||
cmd: | ||
immutable: true | ||
default: "" | ||
kwarg_op: | ||
immutable: true | ||
default: "--" |
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,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
VERSION=$1 | ||
ENTERPRISE=$2 | ||
SHORT_VERSION=`echo ${VERSION} | cut -d "." -f1-2` | ||
|
||
if [ ${SHORT_VERSION} = "2.4" ] && [ ${ENTERPRISE} -eq 0 ]; then | ||
echo "Upgrading dependencies for 2.4 community" | ||
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | ||
exit 0 | ||
fi |
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
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