Skip to content

Commit b28a109

Browse files
committed
(PE-39952) Add PE os version
1 parent 4b20a6c commit b28a109

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tasks/install_pe.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"version": {
77
"description": "The release of PE you want to install e.g. 2018.1 (Default: 2019.2)",
88
"type": "Optional[String[1]]"
9+
},
10+
"os": {
11+
"description": "The os of PE you are installing e.g. ubuntu-22.04-amd64 (Default: el-7-x86_64)",
12+
"type": "Optional[String[1]]"
913
}
1014
},
1115
"private": true

tasks/install_pe.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ else
77
PE_RELEASE=$PT_version
88
fi
99

10+
if [ -z ${PT_os+x} ]; then
11+
PE_OS=el-7-x86_64
12+
13+
else
14+
PE_OS=$PT_os
15+
fi
16+
1017
PE_LATEST=$(curl https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/"${PE_RELEASE}"/ci-ready/LATEST)
11-
PE_FILE_NAME=puppet-enterprise-${PE_LATEST}-el-7-x86_64
18+
PE_FILE_NAME=puppet-enterprise-${PE_LATEST}-${PE_OS}
1219
TAR_FILE=${PE_FILE_NAME}.tar
1320
DOWNLOAD_URL=https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/${PE_RELEASE}/ci-ready/${TAR_FILE}
1421

0 commit comments

Comments
 (0)