Skip to main content

Questions tagged [cloud-init]

The tag has no usage guidance.

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer
695 views

Ubuntu Server 22.04 Autoinstall and Cloud-Init Not Executing Commands

I am trying to set up an Ubuntu Server 22.04 installation using autoinstall and cloud-init. I have two USB keys (I followed this tutorial https://www.jimangel.io/posts/automate-ubuntu-22-04-lts-bare-...
Bastien's user avatar
0 votes
0 answers
76 views

SSH Keys not propagating correctly from instance metadata to authorized_keys: missing keys, user discrepancy, and duplicate key

I want to add eight public keys via instance metadata to avoid adding them manually (i.e.: ssh to VMs, pasting the keys to .ssh/authorized_keys, etc.). I added the keys in Terraform (four distinct ...
SkogensKonung's user avatar
0 votes
1 answer
439 views

Is there a way to pass secrets in cloud-init using Terraform?

Cloud-init has the ability to compliment Terraform in configuring the Virtual Machine it just created. My problem is that cloud-init as uploaded through user-data means that the script especially if ...
Evan Carroll's user avatar
  • 2,089
0 votes
1 answer
235 views

Switching to multi-part cloud-init, getting: SyntaxError: invalid syntax

I used to have user_data = data.template_file.user_data.rendered I changed that to, user_data = data.template_cloudinit_config.master.rendered And I added, data "template_cloudinit_config&...
Evan Carroll's user avatar
  • 2,089