Questions tagged [cloud-init]

131 questions
0
votes
1 answer

Cloud-init expire true issue

After add expire: true in the cloud-init script, I can log in via key to the server, but it says You must change your password now and login again! I want if I set the password, the password expires after the first login and if I set a key, the…
0
votes
0 answers

cloud-init userdata/metadata not loaded in ESXi

I'm using Terraform to provision virtual machines in an ESXi environment. I do this by having once manually imported the Ubuntu Focal Cloud Image as template and cloning virtual machines from it, with parameters supplied by a combination of vApp…
user1933738
  • 247
  • 1
  • 6
0
votes
1 answer

All Linux VMs on Azure won't boot, stuck on cloud-init (metadata service crawler) initialization

I have around 5 VMs in Azure, which were originally provisioned as Ubuntu 18 and since then I've been dist-upgrading them several times. A few months ago I noticed that similar VMs on different subscriptions fail to boot, being stuck on "cloud-init"…
Maxim V. Pavlov
  • 663
  • 3
  • 11
  • 29
0
votes
1 answer

How to create a new user correctly in a debian instance?

I am using ready-made images of debian in the qcow2 format. The default user is "debian". I want to create another user via openstack-horizon. So I elaborated the following script: #cloud-config users: - name: jumper ssh-authorized-keys: …
campos
  • 17
  • 3
0
votes
1 answer

Ubuntu Cloud-init User cant login

I have created an ISO to mount to a prepped Ubuntu template, so when it deploys and boots the first time, Cloud init adds some users and do a few commands. Everything seems to work fine as far as i can see. Users gets added to the passwd, created…
Foxdemon
  • 13
  • 5
0
votes
1 answer

`cloud-init` does not block VM provisioning

I use Azure and I would like to use cloud-init to install some software on VM creation. Here is the content of cloud-init.yml: #cloud-config package_update: true package_upgrade: true runcmd: - curl -fsSL…
0
votes
0 answers

Can't reconnect VPS Essential OVH after removing set_hostname from cloud-init

I have a VPS Essential in OVH with Ubuntu 18.04 LTS installed. I just removed the set_hostname module of the cloud_init_modules from /etc/cloud/cloud.cfg and reboot the system and now I cannot connect to it, this is the line I removed but from other…
Nico
  • 113
  • 6
0
votes
1 answer

Set ipv6 addres/gateway with cloud-init

In CentOS 7.3 I had the following in /etc/sysconfig/network-scripts/ifcfg-eth0: IPV6INIT=yes IPV6ADDR=[address]/64 IPV6_DEFAULTGW=[gateway address] This worked fine. However, now that 7.4 uses cloud-init this gets reset on boot. I can add the…
Tom B
  • 185
  • 1
  • 1
  • 8
0
votes
1 answer

Updating cloud-init on Azure Scale Set with ARM

I have an ARM template that deployes a scaleset to Azure and creates configuration files and runs a docker container via cloud-init. All this works file and we have Azure DevOps running the template and redeploy on changes. BUT any changes to the…
Dimse
  • 101
  • 1
-1
votes
1 answer

ubuntu // running an ssh command as a specific user

I'm looking to add github to known_hosts for the deploy user when the command is ran by the root user. The command would be : ssh -T -o "StrictHostKeyChecking no" git@github.com Using cloudinit, it runs initially with the root user, so this command…
Ben
  • 113
  • 1
  • 9
-3
votes
1 answer

What is the simplest data source for a cloud-init home lab?

I'm using cloud-init 22.1-14 to spin up VMs using Ubuntu cloud images and kvm/qemu on a home server. I think I'm at the stage where I need to implement a data source because my VM creation dies if I try to write arbitrary files as a part of my init.…
mr.zog
  • 923
  • 3
  • 20
  • 39
1 2 3
8
9