Questions tagged [cloud-init]

7 questions
2
votes
1 answer

Password of new user with LXD and Cloud-init

I'm trying to create a profile to automate the creation of a container, but I'm having trouble with cloud-init. For some reason the password is not being set for the user and is also not being added as a sudoer. Here is the YAML: config: …
2
votes
1 answer

invalid config for cloud-init but apparently still works -- how do I remove the warning?

This is my cloud-init #cloud-config package_update: true package_upgrade: true users: - name: sammy ssh-authorized-keys: - ssh-rsa abcd - ssh-rsa efgh after i successfully run it on ubuntu 22.04 vps i checked I see this when i do…
Kim Stacks
  • 585
  • 3
  • 15
  • 33
2
votes
2 answers

cloud-init how to run a curl before and after every non runcmd

This is my default cloud-init package_update: true package_upgrade: true users: - name: sammy ssh_authorized_keys: - ssh-rsa AAAAB3NzaC1... sudo: ['ALL=(ALL) NOPASSWD:ALL'] groups: sudo shell: /bin/bash write_files: - path:…
Kim Stacks
  • 585
  • 3
  • 15
  • 33
1
vote
1 answer

Cloned Ubuntu VMs in vSphere get same IP, despite resetting /etc/machine && /var/lib/dbus/machine-id

vSphere 7.0 + Ubuntu 18 / 20 (tried both) I am trying the steps from this blog post: https://blah.cloud/kubernetes/creating-an-ubuntu-18-04-lts-cloud-image-for-cloning-on-vmware/ I also tried this…
KidACrimson
  • 394
  • 1
  • 7
  • 23
0
votes
1 answer

Persistent promiscuous mode in Debian 12

TLDR: How do you add persistent promiscuous mode in Debian 12? I'm running a Proxmox server with a few virtual machines and each VM is running separate Docker containers for different tasks. Previously I've had no problem with promiscuous mode in…
samumoil
  • 11
  • 3
0
votes
1 answer

Deploying Ubuntu 22.04 with PXEBoot using Syslinux

I have a functional DHCP, ftp and tftp server with a tftpboot directory in which the machines configured in PXEboot come to load syslinux without problems, from the network. I am trying to install ubuntu 22.04 in PXE via SYSLINUX. I have followed…
Andy McRae
  • 324
  • 3
  • 9
0
votes
0 answers

generate shadow password in Ruby for Ubuntu Autoinstall

I have a Ruby script which, using a template, creates a cloud-init yaml configuration to use in order to perform an Ubuntu autoinstall. The script itself should encrypt the user password and, at the moment, I'm doing so using…
bert
  • 177
  • 1
  • 6