cloud-init team mailing list archive
Mailing list archive
Re: cloud-init configuration userdata for Debian Buster - Terraform - AWS
Thanks for your help.
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, May 14, 2020 11:52 AM, Daniel Watkins <daniel.watkins@xxxxxxxxxxxxx> wrote:
> Hi Cauã,
> 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
> > https://github.com/sztupy/doclusterdemo/blob/master/terraform/1/web.conf,
> > 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
> starting others.
> 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!
>  https://cloudinit.readthedocs.io/en/latest/topics/modules.html#write-files
>  https://cloudinit.readthedocs.io/en/latest/topics/modules.html#runcmd
>  https://cloudinit.readthedocs.io/en/latest/topics/modules.html#package-update-upgrade-install