Skip to content

Commit

Permalink
(PE-39952) Add PE os version
Browse files Browse the repository at this point in the history
  • Loading branch information
seamymckenna committed Dec 19, 2024
1 parent 4b20a6c commit b28a109
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tasks/install_pe.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"version": {
"description": "The release of PE you want to install e.g. 2018.1 (Default: 2019.2)",
"type": "Optional[String[1]]"
},
"os": {
"description": "The os of PE you are installing e.g. ubuntu-22.04-amd64 (Default: el-7-x86_64)",
"type": "Optional[String[1]]"
}
},
"private": true
Expand Down
9 changes: 8 additions & 1 deletion tasks/install_pe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ else
PE_RELEASE=$PT_version
fi

if [ -z ${PT_os+x} ]; then
PE_OS=el-7-x86_64

else
PE_OS=$PT_os
fi

PE_LATEST=$(curl https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/"${PE_RELEASE}"/ci-ready/LATEST)
PE_FILE_NAME=puppet-enterprise-${PE_LATEST}-el-7-x86_64
PE_FILE_NAME=puppet-enterprise-${PE_LATEST}-${PE_OS}
TAR_FILE=${PE_FILE_NAME}.tar
DOWNLOAD_URL=https://artifactory.delivery.puppetlabs.net/artifactory/generic_enterprise__local/${PE_RELEASE}/ci-ready/${TAR_FILE}

Expand Down

0 comments on commit b28a109

Please sign in to comment.