Questions tagged [cloud-config]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 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 ...
user avatar
  • 101
0 votes
1 answer
111 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). ...
user avatar
  • 239
0 votes
1 answer
1k 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: "...
user avatar
1 vote
1 answer
541 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 ...
user avatar
  • 143
1 vote
1 answer
123 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 ...
user avatar
  • 11
5 votes
1 answer
9k 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?
user avatar
1 vote
1 answer
609 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 ...
user avatar
  • 121
0 votes
1 answer
315 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 (...
user avatar
  • 133
0 votes
2 answers
243 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 ...
user avatar
  • 113
1 vote
1 answer
775 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....
user avatar
  • 2,075
2 votes
1 answer
97 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: ...
user avatar
  • 2,075
1 vote
1 answer
150 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 ...
user avatar
  • 2,075
2 votes
1 answer
956 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
698 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 ...
user avatar
  • 111
1 vote
1 answer
617 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 ...
user avatar
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 ...
user avatar
  • 1,364