Questions tagged [cloud-config]

19 questions
5
votes
2 answers

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?
Derek Mahar
  • 801
  • 2
  • 8
  • 15
2
votes
1 answer

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: - path: "/etc/kubernetes/kube.conf" …
aknuds1
  • 2,085
  • 3
  • 16
  • 23
2
votes
1 answer

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 password with a SHA-512 hashed password string. Upon…
PDX Fixed
  • 31
  • 3
2
votes
1 answer

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 though, so the config was basically processed. I…
sgohl
  • 1,373
  • 1
  • 11
  • 16
1
vote
1 answer

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 digital oceans guides): - name: initialize_data …
gogstad
  • 143
  • 5
1
vote
1 answer

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 cloud-config-url parameter pointing to an NGINX…
AlexR
  • 11
  • 1
1
vote
1 answer

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 experience. Also, configuring drop-ins in…
zeck
  • 121
  • 2
1
vote
1 answer

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.experimentalberlin.internal sh[1132]: Connecting to…
aknuds1
  • 2,085
  • 3
  • 16
  • 23
1
vote
1 answer

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 debugging purposes)?
aknuds1
  • 2,085
  • 3
  • 16
  • 23
1
vote
1 answer

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 the 13.2 image uses HVM - instead of PV -…
gsaslis
  • 111
  • 4
1
vote
1 answer

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 to provision a newly created instance. For test…
0
votes
1 answer

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: "http://$private_ipv4:2380" listen-client-urls:…
Shadowraze
  • 65
  • 1
  • 6
0
votes
1 answer

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 (default value is None) for the /var/www…
eric
  • 133
  • 5
0
votes
2 answers

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 works perfectly fine up till here. When we launch…
0
votes
1 answer

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 trailing newline is written to the resulting file,…
Ian Bamforth
  • 289
  • 3
  • 16
1
2