cloud-init team mailing list archive
Mailing list archive
Re: cloud-init configuration userdata for Debian Buster - Terraform - AWS
Thanks for reaching out!
On Thu, May 14, 2020 at 01:21:30AM +0000, Cauã Siqueira wrote:
> I am migration from CoreOS to Debian Buster inside AWS. I use
> terraform for IaaC and i'm using userdata like
> but I can't use with Debian. How can i use with Debian Buster ?
I don't have much experience with either Terraform or CoreOS, so
apologies if my answer misses the mark. It looks to me like this
configuration is starting some systemd units, and writing out and
cloud-init doesn't have a direct parallel to the `units` configuration
key, unfortunately, so you'll have to put the things it does together
I think you'll want to look at `write_files` for writing out the
systemd units and `runcmd` for executing the systemctl commands to
load the service files and start them.
It also looks to me like this configuration assumes that the packages
that provide etcd2.service, fleet.service, and /usr/bin/docker will
already be installed. If you aren't taking care of this in your Debian
image build process, you'll probably also want to look at
`package_update_upgrade_install` to do that for you.
I hope this helps!
Description: PGP signature