alpine-ec2-ami merge requestshttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests2021-12-26T23:21:30Zhttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/118Add support for cloud-init2021-12-26T23:21:30ZMike Crutemike@crute.usAdd support for cloud-initThis pull request adds cloud-init support to the AMI. Upstream cloud-init still has some bugs with their default configuration that I need to patch, mostly around not locking the `alpine` user at init time. But this is a start. Currently...This pull request adds cloud-init support to the AMI. Upstream cloud-init still has some bugs with their default configuration that I need to patch, mostly around not locking the `alpine` user at init time. But this is a start. Currently you can build the image and it'll deploy the SSH keys correctly to the `alpine` user, it will also run the user-data. I haven't done any other quality checking.
There aren't any AMIs available yet, I've deleted the testing ones, but they can be produce by building the `ci-v3_13-x86_64` build from the `alpine` profile. This will generate an AMI with a `alpine-ci-test-ami-` prefix that is bootstrapped using cloud-init. All of the default builds still use `tiny-ec2-bootstrap`.
This change should be safe to merge as-is because it doesn't change the default behavior of the normal targets.https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/68Support ARM instance types2020-06-10T01:52:28ZMike Crutemike@crute.usSupport ARM instance typesThis depends on the `template-updates` in #67
The magic numbers for console speed, nvme timeout, and block offset all come from the Amazon Linux and Ubuntu AMIs.
We'll want to remove the `install_updated_aarch64_kernel` function o...This depends on the `template-updates` in #67
The magic numbers for console speed, nvme timeout, and block offset all come from the Amazon Linux and Ubuntu AMIs.
We'll want to remove the `install_updated_aarch64_kernel` function once the upstream virt kernel has the ena patches. This should be within the next day or so for edge and in the 3.12 release. I'll push some changes to this to integrate the test profile into the alpine one but wanted to get this out for review as soon as it was cleaned up.Mike Crutemike@crute.usMike Crutemike@crute.ushttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/67Template updates2020-05-30T22:50:06ZMike Crutemike@crute.usTemplate updatesThere are a handful of pretty small changes here... this depends on the tooling changes in #66
* Remove the region and groups variables from packer. Those will be handled by the forthcoming release tool, not packer.
* Packer uses th...There are a handful of pretty small changes here... this depends on the tooling changes in #66
* Remove the region and groups variables from packer. Those will be handled by the forthcoming release tool, not packer.
* Packer uses the scripts from the scripts directory directly to save needing to copy them to the build root
* The default build region is always `us-west-2` (but can still be overridden if necessary) since the core developers are on the west-coast of the US
* Initfs features are now parametrized in the profiles
* The mdev nvme transform is inlined into the `setup-amis` script to eliminate that file and directory
* Removed some unused overrides in the templatesMike Crutemike@crute.usMike Crutemike@crute.us