aboutsummaryrefslogtreecommitdiff
path: root/release/tools
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2019-03-20 07:24:21 +0000
committerColin Percival <cperciva@FreeBSD.org>2019-03-20 07:24:21 +0000
commitb55bb7636615602824bdfd5bd6f4b2fdfc1c2265 (patch)
treee8ea805742b3c10f0c5c7c548f1c204c0ea791ce /release/tools
parent01b7329605347f147872c5b71b6f3ee3a8a0fd1c (diff)
downloadsrc-b55bb7636615602824bdfd5bd6f4b2fdfc1c2265.tar.gz
src-b55bb7636615602824bdfd5bd6f4b2fdfc1c2265.zip
Only install amazon-ssm-agent into amd64 AMIs.
This package does not exist on aarch64 at present.
Notes
Notes: svn path=/head/; revision=345317
Diffstat (limited to 'release/tools')
-rw-r--r--release/tools/ec2.conf10
1 files changed, 9 insertions, 1 deletions
diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index 3be4a5015dbd..bf8eb723d1bd 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -6,7 +6,15 @@
# Packages to install into the image we're creating. This is a deliberately
# minimalist set, providing only the packages necessary to bootstrap further
# package installation as specified via EC2 user-data.
-export VM_EXTRA_PACKAGES="ec2-scripts firstboot-freebsd-update firstboot-pkgs dual-dhclient amazon-ssm-agent"
+export VM_EXTRA_PACKAGES="ec2-scripts firstboot-freebsd-update firstboot-pkgs dual-dhclient"
+
+# Include the amazon-ssm-agent package in amd64 images, since some users want
+# to be able to use it on systems which are not connected to the Internet.
+# (It is not enabled by default, however.) This package does not exist for
+# aarch64, so we have to be selective about when we install it.
+if [ "${TARGET_ARCH}" = "amd64" ]; then
+ export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} amazon-ssm-agent"
+fi
# Set to a list of third-party software to enable in rc.conf(5).
export VM_RC_LIST="ec2_configinit ec2_fetchkey ec2_loghostkey firstboot_freebsd_update firstboot_pkgs ntpd"