Skip to content

Commit 655445b

Browse files
committed
Fix Ubuntu-related architecture filename
1 parent ca5503a commit 655445b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: plans/action/install.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@
149149
peadm::file_content_upload($puppetdb_database_replica_pe_conf, '/tmp/pe.conf', $puppetdb_database_replica_target)
150150

151151
# Download the PE tarball and send it to the nodes that need it
152-
$pe_tarball_name = "puppet-enterprise-${version}-${platform}-x86_64.tar.gz"
152+
$pe_tarball_name = "puppet-enterprise-${version}-${platform}.tar.gz"
153153
$local_tarball_path = "${stagingdir}/${pe_tarball_name}"
154154
$upload_tarball_path = "/tmp/${pe_tarball_name}"
155155

156156
run_plan('peadm::util::retrieve_and_upload', $pe_installer_targets,
157-
source => "https://s3.amazonaws.com/pe-builds/released/${version}/puppet-enterprise-${version}-${platform}-x86_64.tar.gz",
157+
source => "https://s3.amazonaws.com/pe-builds/released/${version}/puppet-enterprise-${version}-${platform}.tar.gz",
158158
local_path => $local_tarball_path,
159159
upload_path => $upload_tarball_path,
160160
)

Diff for: tasks/precheck.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
hostname=$(hostname -f)
44
osfamily=$(cat /etc/os-release | grep -qi ubuntu && echo "ubuntu" || echo "el")
55
version=$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)
6+
arch=$(uname -m)
7+
8+
# Because 64-bit Ubuntu wanted to be special.
9+
[ "$osfamily" = "ubuntu" -a "$arch" = "x86_64" ] && arch="amd64"
610

711
# Output a JSON result for ease of Task usage in Puppet Task Plans
812
cat <<EOS
913
{
1014
"hostname": "${hostname}",
11-
"platform": "${osfamily}-${version}"
15+
"platform": "${osfamily}-${version}-${arch}"
1216
}
1317
EOS

0 commit comments

Comments
 (0)