Questions tagged [cloud-init]

CloudInit is a set of python scripts and utilities that handles initialization and configuration of cloud instances. It is installed in the Ubuntu Cloud Images and also in the official Ubuntu images available on EC2.

CloudInit is a set of python scripts and utilities that handles initialization and configuration of cloud instances. It is installed in the Ubuntu Cloud Images and also in the official Ubuntu images available on EC2.

387 questions
0
votes
1 answer

How to write a cloud-init script to download and run a program?

I have Go compiled executable (say on S3) that I'd like to download and run (perpetually) on a set of EC2 instances (an auto scaling group). This needs to be completely automatic via cloud-init. The closest I can find is to use upstart and do…
Sudhir Jonathan
  • 16,998
  • 13
  • 66
  • 90
0
votes
2 answers

os.system('sudo shutdown now -P') doesn't work with cloud-init

I want to launch an Amazon EC2 instance programmatically, use cloud-init to execute a Python script, then have this same script terminate the instance. Everything works fine, except for the self-termination part. I've tried this: os.system('sudo…
Parzival
  • 2,004
  • 4
  • 33
  • 47
0
votes
3 answers

Puppet agent daemon not reading a facter fact (EC2, cloud-init)

I am using puppet to read a fact from facter, and based on that I apply a different configuration to my modules. Problem: the puppet agent isn't seeing this fact. Running puppet agent --test interactively works as expected. Even running it…
TL-Eugene
  • 304
  • 1
  • 2
  • 13
-1
votes
1 answer

How to use cloud-init with debian Vagrant boxes?

It seems that cloud-init is not pre-installed in the debian/bookworm64 Vagrant image as well as debian/bullseye64. I did not find any other relevant image in search. Is there a way to make cloud-init to execute the user script nonetheless, maybe…
Ribtoks
  • 6,634
  • 1
  • 25
  • 37
-1
votes
1 answer

Cloud-init error when installing VM with cloud config file

I created a cloud-init file and validated it using the following command: cloud-init schema --config-file source-files/server/user-data After including my cloud config file in an Ubuntu 22.04 ISO file, I modified other files in Ubuntu to make it…
kursattokpinar
  • 119
  • 1
  • 8
-1
votes
1 answer

Google Cloud VM metadata-based keys ssh: handshake failed unable to authenticate and oslogin_cache_refresh: Failure getting groups, quitting

When trying to SSH to GCE VMs using metadata-based SSH keys I get the following error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain While troubleshooting I can see the keys in…
Greg Bray
  • 14,929
  • 12
  • 80
  • 104
-1
votes
1 answer

Cloudinit, Proxmox, Ubuntu & Static Routes

I'm creating instances on a development proxmox setup. To configure the networking inside the instance I am using Cloudinit and snippets. On Ubuntu distributions it appears I need to set up a static route to the gateway but, I can't figure out a way…
Rylad
  • 47
  • 1
  • 5
-1
votes
2 answers

Azure: How to run a command as part of deployment process?

I want to deploy a redHat enterprise linux machine in azure public cloud whose packeges are all up to date. Is there any way to run the command "yum update -y" (and maybe other 'yum install' commands as well) automatically as part of the deployment…
MrSonic
  • 363
  • 3
  • 10
-2
votes
1 answer

cloud-init does not seem to provision Ubuntu VM with appropriate user as specified with config file

I have run cloud-localds seed.img user-data.yaml metadata.yaml Where the two files are: user-data.yaml #cloud-config users: - name: chris password: chris groups: users, admin sudo: ALL=(ALL) NOPASSWD:ALL shell: /bin/bash lock_passwd:…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
-2
votes
1 answer

what is incorrect with cloud-init script for ec2

I have written a basic loud init script, but when I pasted it in ec2 user-data section , nothing happened , I am trying to install docker on ec2 and run a script , later i will replace script with docker pull and docker run commands. I can see my…
dev
  • 732
  • 2
  • 8
  • 29
-2
votes
1 answer

Proxmox Terraform changing Cloud-Init CD-ROM

I created the following Template in Proxmox: Here is my Terraform file to create a VM: resource "proxmox_vm_qemu" "fuse-pri" { name = "fuse-pri" vmid = "302" desc = "Primary Fuse PostgreSQL DB - built by terraform" …
Shery
  • 1,808
  • 5
  • 27
  • 51
1 2 3
25
26