Questions tagged [cloud-init]
131 questions
0
votes
1 answer
Centos Atomic 7 cloud-init static network configuration NO DEFAULT GATEWAY
I downloaded CentOS Atomic Host from here and installed in VirtualBox VM with Bridged adapter as the network adapter. Default installation and I only setup root password and nothing else. Then I logged in the VM and ran the command systemctl enable…

Akshay Shah
- 45
- 1
- 7
0
votes
1 answer
Can cloud-init be forced to retrieve metadata and userdata on every boot?
My understanding is that the intended way of cloud-init working is that it retrieves metadata and userdata once per instance. Can this be changed so that cloud-init retrieves data on every boot?
I noticed that removing the directory…

Pekka Pekkarinen
- 1
- 1
0
votes
1 answer
AWS Userdata script in Cloud Init not running
While trying to use the AWS userdata option to run a script on instance boot, I noticed that some times (Not always) the cloud init part gets stuck somewhere in the middle and does not reach the part where it runs the user script.
This is how it…

shaharmor
- 337
- 4
- 16
0
votes
1 answer
coreos etcd config using ignition
I'm trying to boot coreos on my private cloud using pxe boot using coreos official document.
The process requires ignition file for cloud config, but I can't find a way to set some configuration tags like etcd in ignition.
I'd be glad if anyone can…

Mohammad Karimi
- 11
- 4
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
1 answer
Reboot after specified time in cloud-init, only once
This is on a CentOS 7 AWS image built off the official AMI
The power_state module is exactly what I need, looking at this
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#reboot-poweroff-when-finished
However... I can't find anywhere…

chucky_z
- 51
- 4
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
0
votes
2 answers
CoreOS: Inject a real private IP in etcd2 cloud-config
I have three networks on Rackspace:
Public network
Service network 10.181.XXX.XXX (they call it a private network sometimes but it is not private per-se, it is datacenter-wide private so their tenants may share it)
A real private network of…

Barbadoss
- 129
- 4
0
votes
0 answers
Qcow2 image works with virt-manager, but throws cloud-init error with virt-install
I have CentOS-7-x86_64-GenericCloud-20140929_01.qcow2 image. When i boot it via virt-manager gui, it comes up well. No issues..
But i used virt-install to bring up the same qcow2 image as,
virt-install --name demo-vm --ram 1024 --disk…

Saravana Kumar
- 169
- 1
- 1
- 6
0
votes
1 answer
Attach a volume and set internal IP on boot
I have an Ubuntu 14.04 based NFS server AMI wrapped with a Launch Configuration and an Auto Scaling Group of just a single instance (min/max/req). This is just to make sure that if the server goes down, a new one will automatically replace it. The…

Amit Dunsky
- 485
- 1
- 4
- 10
0
votes
1 answer
Fedora21 Cloud Base refuses to enable eth1 on Virtualbox
Fedora21 Cloud comes in 2 flavors. Base and Atomic. I'm trying to install the BASE version using VirtualBox. The Atomic version will enable dhcp on eth1 if it's enabled, however, BASE refuses to enable eth1. I installed nmcli and tried any number of…

Richard
- 161
- 1
- 2
- 8
0
votes
1 answer
Cam I instruct an AWS EC2 instance to run in "maintenance" mode with cloud-init (user data)
I have an AMI image I'd like to update, i.e. start an instance from it, do some edits/updates, and save a new AMI from the instance. But while I do my edits I don't need the full system running, I only need ssh access.
I wonder if I can set…

gdamjan
- 160
- 1
- 4
0
votes
2 answers
cloud-init on AWS: mounts disappear after imaging and rebuilding
I'm using cloud-init to automatically prepare an AWS image (AMI) for use in a production environment - that way I can have the environment setup process tracked in a source control system, but I can skip that lengthy process when I need a new…

Guss
- 2,670
- 5
- 34
- 59
0
votes
1 answer
How do I change the hostname on Amazon Linux on startup?
I am using Amazon Linux on EC2, passing the following cloud init directives as user data on setup:
#cloud-config
hostname: example.com
locale: en_US.utf8
manage_etc_hosts: true
manage_resolv_conf: false
package_update: true
package_upgrade:…
0
votes
0 answers
Copying over public keys within private network
As part of a cloud init script for an EC2 instance, I want to generate a private & public key for a user created on the new instance and then copy the public key over to another server in the same private network. The question is the best way to do…

Jordan Reiter
- 1,290
- 4
- 20
- 40