Questions tagged [cloud-init]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
52 views

Why are cloud-init processes running long after server creation?

I'm spinning up a new Ubuntu 18.04 cloud server and using a cloud-init to install docker. I can see that the cloud-init process runs and apparently completes fine, by inspecting the /var/log/cloud-...
0
votes
1answer
32 views

DHCP lease renewal fails on AWS lightsail server

Tuesday the 12th of September 2021 out of the blue a root server of mine running debian hosted in AWS Lightsail crashed. After a reboot it would run fine for approximately 20-60 minutes, after that it ...
1
vote
0answers
36 views

How can I use cloud-init NoCloud with OPNsense 21?

I'm new to OPNSense (also to FreeBSD in general) and I'm interested to use cloud-init to configure at least LAN (vtnet0) with static ip address, root password and eventually running custom scripts (or ...
0
votes
1answer
333 views

Debian 11 fails to set IPv6 via Cloud-Init: "ens18/disable_ipv6: No such file or directory"

When using Cloud-Init to set both a static IPv4 and IPv6 in the latest Debian 11 (generic) cloud image, networking.service throws the following error at boot: Aug 16 14:28:29 debian ifup[540]: sysctl: ...
0
votes
0answers
50 views

dnf module version mismatches in rhel8 during dnf-update in azure

What specific command or configuration syntax must be used to resolve the module mismatch errors that are showing up in the logs of a dnf update -y command shown below? CONTEXT: 1.) The Packer azure-...
1
vote
2answers
122 views

prevent secrets from being printed to cloud-init logs

A cloud-init script needs to set environment variable values to contain secrets. What specific syntax can be changed in the below to prevent the secret PASS and PSS from being printed in the cloud-...
0
votes
1answer
69 views

Unexpected token within environment variable throws syntax error in cloud-init

What specific syntax must be changed in the code below in order to prevent the error that is being thrown when an environment variable contains an unexpected token? THE CODE: Specifically, a cloud-...
0
votes
0answers
124 views

Mount NFS drive during automatic installation

I am setting up automatic installation (autoinstall / AutoInstallation) of Ubuntu server 20.04 Focal by booting the USB installer and fetching the user-data configuration file from a local http server....
0
votes
2answers
116 views

Is there a way to capture/log installations and installation errors caused by the tasksel?

I have an automation script that involves this line: :~$ sudo tasksel install desktop-xfce meta-top10 meta-default tasksel: apt-get failed (100) But I am unsure why tasksel failed. Is there a way to ...
1
vote
2answers
585 views

Changing default values in /etc/ssh/sshd_config using cloud init config

My Ubuntu18 VMs come up with the following default config in /etc/ssh/sshd_config upon deployment, which makes my ssh sessions into them terminate upon 5min inactivity: ClientAliveInterval 300 ...
0
votes
0answers
374 views

Obscuring password in cloud-init userdata startup of AWS EC2 instance

An AWS EC2 instance creates a new user during its cloud-init startup process, and sets the password for that new user. Terraform is being used to trigger the creation of the new EC2 instance, which ...
0
votes
1answer
904 views

How do I use Hashicorp's Linux Repository with Centos 8 and cloud-init to install Vault

How do I use Hashicorp's Linux Repository with Centos 8 and cloud-init to install vault? I have tried this cloud-config file without success: #cloud-config package_update: true packages: - jq - ...
1
vote
1answer
590 views

Make Python3 default without breaking yum in RHEL7

What specific syntax needs to be changed or added to the below in order for commands calling python in a RHEL7 VM to be interpreted using Python3 WITHOUT breaking programs like yum that require ...
0
votes
2answers
1k views

Ubuntu Server won't start if no GPU is installed

I try to set my old PC as a headless Ubuntu Server. When I first installed it with a GPU and then removed the GPU everything worked as excepted. My Motherboard (Asus p8p67-m) made one long and three ...
2
votes
2answers
2k views

Azure VM cloud-init overrides /etc/fstab

I added an additional data disk, as described in the Attach a data disk to a Linux VM documentation. The partition in question is /dev/sdc1. I added this line to the very bottom. Unfortunately the ...
3
votes
2answers
1k views

When using cloud-init, what order are the users created in?

I am using cloud-init to initialize a RHEL Atomic Host VM. I have the following as my user-data file: #cloud-config groups: - ourgroup users: - name: muser primary_group: ourgroup ...
-2
votes
1answer
2k views

Rename network interface ubuntu on instance boot cloud-init

I have two network interfaces- eth0 and eth1 on the Ubuntu image I am building. I want to create cloud instances from that image. For every cloud instance it creates, every instance will have those ...
0
votes
1answer
474 views

How to boot after partitioning

I have an ubuntu server. Via cloud-init I make partitions. When I restart my server, it would not come up again. I am sure I miss one command to tell the system which partition should be used for ...
2
votes
0answers
123 views

Using cloud-init to modify application properties used by init scripts

I previously asked this question about ordering of init scripts. It turns out that this isn't the solution I need (or possibly even the correct question to ask) - it was phantom success. My system is ...
1
vote
1answer
2k views

Order of execution for cloud-init-local on AWS Linux

I am attempting to create a new EC2 instance and I am supplying user-data to the instance at create time. My user-data executes some bash commands that modify the parameters of a properties file for ...
2
votes
1answer
1k views

How to setup MySQL with cloud-init?

How can I do this? #cloud-config users: - name: dev ssh-authorized-keys: - ssh-rsa AB3NzaC1yc... sudo: ['ALL=(ALL) NOPASSWD:ALL'] groups: sudo shell: /bin/bash packages: - ...
84
votes
9answers
95k views

How to disable `apt-daily.service` on Ubuntu cloud VM image?

The Ubuntu 16.04 server VM image apparently starts the "apt-daily.service" every 12 hours or so; this service performs various APT-related tasks like refreshing the list of available packages, ...