File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 149
149
peadm::file_content_upload($puppetdb_database_replica_pe_conf , ' /tmp/pe.conf' , $puppetdb_database_replica_target )
150
150
151
151
# 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"
153
153
$local_tarball_path = " ${stagingdir} /${pe_tarball_name} "
154
154
$upload_tarball_path = " /tmp/${pe_tarball_name} "
155
155
156
156
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" ,
158
158
local_path => $local_tarball_path ,
159
159
upload_path => $upload_tarball_path ,
160
160
)
Original file line number Diff line number Diff line change 3
3
hostname=$( hostname -f)
4
4
osfamily=$( cat /etc/os-release | grep -qi ubuntu && echo " ubuntu" || echo " el" )
5
5
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"
6
10
7
11
# Output a JSON result for ease of Task usage in Puppet Task Plans
8
12
cat << EOS
9
13
{
10
14
"hostname": "${hostname} ",
11
- "platform": "${osfamily} -${version} "
15
+ "platform": "${osfamily} -${version} - ${arch} "
12
16
}
13
17
EOS
You can’t perform that action at this time.
0 commit comments