Questions tagged [cloud-config]
The cloud-config tag has no usage guidance.
18
questions
0
votes
1
answer
748
views
Cloud-init / cloud-config to install node.js
From reading the cloud-init docs (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#apt-configure), it appears that this user-data should add the Nodesource source and key for apt, and ...
0
votes
0
answers
593
views
My cloud config template file does not seem to be working when I use it to boot up a droplet in Digital Ocean?
I'm using Terraform to spin up a DO droplet, using an Ubuntu and Docker image. Checkout below:
resource "digitalocean_droplet" "web" {
image = "docker-20-04"
name ...
0
votes
1
answer
465
views
How to pass a cloud config to LXD?
I've been to countless sites including this one, trying to figure out how to make LXD run a cloud-config when I launch my LXD container. Some places recommend setting up a profile (didn't work). ...
0
votes
1
answer
2k
views
Found unexpected end of stream cloud-config
So this is my cloud-config
#cloud-config
coreos:
etcd2:
discovery: "https://discovery.etcd.io/tocken"
advertise-client-urls: "http://$private_ipv4:2379"
initial-advertise-peer-urls: "...
1
vote
1
answer
643
views
Systemd units: [Install] vs. command: start (cloud-config)
I'm configuring systemd in a cloud-config file for CoreOS. If I understand this correctly, I have two ways of starting a unit at boot:
Alternative 1, use the [Install]-section (as described in ...
1
vote
1
answer
130
views
CoreOS: How to serve different cloud-config "profiles"
I am just getting started with CoreOS, I've been following the step-by-step tutorial about setting up Kubernetes, but I seem to be missing a very basic concept. As I am using Bare Metal, I use the ...
7
votes
2
answers
12k
views
How can a cloud-config script copy a file to a server?
How can a cloud-config script copy a file to a server? write_files requires the file content in the script. How can I specify an external file that contains the content?
1
vote
1
answer
653
views
Is there a way to configure journald.conf through cloud config on CoreOS?
Try to find a way to automatically set SystemMaxUse for systemd-journald.service. I knew I can set it in /etc/systemd/journald.conf manually. But it will restore to default after CoreOS updates in my ...
0
votes
1
answer
393
views
How to configure apache via cloud-config?
We have a cloud-config script to do some work on a server right after creation. (Digital Ocean droplet)
I want the script to modify the default behavior for apache, setting the AllowOverride to All (...
0
votes
2
answers
347
views
cloud-config file not loaded and units not started on machine created from AMI
We are working on a code that does the following using terraform (on AWS):
Creates a core-os instance (1) with the cloud-config yaml file we provided
Creates an AMI from that instance
The process ...
1
vote
1
answer
800
views
How do I ensure that a CoreOS cloud-config service is able to download files?
I am defining a one-shot service in my CoreOS cloud-config, but it is failing due to not being able to download files from Google Cloud Storage (via wget):
Apr 13 11:09:56 staging-node-ys9y.c....
2
votes
1
answer
99
views
Why doesn't CoreOS start etcd2 automatically, even though my cloud-config says so?
I am running CoreOS beta 991.1.0 on a Google Compute Engine instance, where cloud-config is configured via the user_data metadata variable. My cloud-config looks like this:
#cloud-config
write_files:
...
1
vote
1
answer
155
views
How do I see active cloud-config on CoreOS running on GCE?
I've got CoreOS beta 991.1.0 running on Google Compute Engine, and cloud-config is applied via the GCE instance's user_data metadata variable. How can I print the currently active cloud-config (for ...
2
votes
1
answer
1k
views
Cloud-Config - Hashed Password Being Set Incorrectly
I'm provisioning an Ubuntu 14.04 server with Digital Ocean and am using Cloud-Config in the user data field to do some initial setup. The issue I am having is creating a new user and setting a ...
0
votes
1
answer
2k
views
Can cloud-config's write_files control whether a newline is appended to the file?
I'd like to use cloud-config in user-data on AWS to write a file, say /etc/myfile. My experimentation so far seems to suggest that if the write_files block is the last bit of the user-data, then no ...
1
vote
1
answer
1k
views
Cloud-config resize filesystem fails
So, my adventure started like this:
I had an OpenSUSE 13.1 VM, and I wanted to upgrade to 13.2, so one of the main differences between the 2 community amis (13.1 - `` and 13.2 -ami-3a6cc64d) was that ...
1
vote
1
answer
700
views
Duplicate host records in Foreman when VM is created by Foreman in OpenStack
I managed to connect Foreman and OpenStack, so that I can create VMs in OpenStack using Foreman web interface. I am using cloud-init, or how Foreman calls it, user data provisioning template in order ...
2
votes
1
answer
1k
views
coreos cloud-config unrecognized key
I am trying to launch an aws ec2 instance with coreos, providing a cloud-config, which just ignores some parts like putting an rsa_private_key or runcmd. Anyway, the hostname has been set successfully ...