cloud-init Questions

4

Solved

I have a cloud-init file that sets up all requirements for our AWS instances, and part of those requirements is formating and mounting an EBS volume. The issue is that on some instances volume atta...
Oidium asked 25/9, 2020 at 22:15

6

Solved

Context I am using the https://wiki.jenkins.io/display/JENKINS/Amazon+EC2+Plugin for jenkins which allows me to dynamically provision new cloud instances as build slaves in AWS EC2. I am launchin...
Susceptive asked 23/4, 2018 at 12:7

7

I want to create instances in Openstack that will have Docker in them already installed prior to ssh to them. So naturally I got interested in Cloud-init technology because it allows us to in...
Armelda asked 25/6, 2014 at 21:22

3

I have some cloudinit scripts to execute when my AWS EC2 Ubuntu instance starts up. I want to setup GIT config variables, with the code below. #cloud-config runcmd: - [ sh, -c, "git config --glo...
Piscatorial asked 4/11, 2016 at 14:29

4

Solved

I am starting with Terraform. I am trying to make it set a friendly hostname, instead of the usual ip-10.10.10.10 that AWS uses. However, I haven't found how to do it. I tried using provisioners, ...
Jerrine asked 23/1, 2019 at 12:42

6

I am trying to add a crontab so that I can get the cloudwatch metrics of diskspace used and disk space utilization every 5 minutes through a user data script. Below is my user-data script: #!/bin...
Leonorleonora asked 18/10, 2018 at 14:34

3

Solved

Wondering if anyone knows of a validator that can validate cloud-init config similar to this. We tried it and it gives a bunch of errors that are not applicable e.g., it does not recognize package_...
Disembowel asked 29/1, 2019 at 18:11

2

Solved

cloud-init is package performing various configurations on a virtual machine on first boot. You have to configure a file with your config, and throw it at your VM then you virtualize it. But how e...
Behead asked 28/6, 2018 at 10:23

9

Solved

I have an EC2 instance running an AMI based on the Amazon Linux AMI. Like all such AMIs, it supports the cloud-init system for running startup scripts based on the User Data passed into every insta...
Taking asked 25/6, 2011 at 2:17

2

I running the Ubuntu 18.04 cloud image and trying to configure networking through cloud-init. For some reason it is ignoring my networking when I try to assign a static IP and just falls back to us...
Transpose asked 13/10, 2019 at 21:57

4

Solved

I am new to cloud-init, my final goal is to run an R script each time an EC2 Spot Instance becomes active, but in order to test it I created an on-demand Ubuntu 12.04 instance and created a simple ...
Neiman asked 2/9, 2012 at 22:17

2

I am trying to run cloud init as a different user than root, because of permissions problem when using git. Is there such a way?
Expiate asked 1/11, 2021 at 14:41

6

Solved

Recently I've gotten Cloud-Init to work by mounting my config in an image. This is all fine, it works. If I break the config, it tells me. What it doesn't tell me is why I'm not allowed to log on. ...
Inflatable asked 4/5, 2020 at 12:7

6

Solved

I'm writing a CloudFormation template and I'm trying to debug the user-data script I provide in the template. How can I run the cloud-init manually and make it perform the same actions it does when...
Preordain asked 18/4, 2014 at 9:38

4

I am using openstack to create a VM using 'nova boot' command. My image is cloud-init enabled. I pass a --user-data script which is a bash shell format for cloud-init to run during VM boot up time....
Kafka asked 14/4, 2014 at 16:46

1

How do I send cloud-init script to a gcp instance using terraform? Documentation is very sparse around this topic.
Hillary asked 30/11, 2021 at 21:58

5

I am configuring an OpenStack box using cloud-init/cloud-config. I intend to wait until it is fully configured before I start using it. This is not all that hard to do using some marker file or de...
Frugivorous asked 8/10, 2015 at 14:46

2

Solved

In my Terraform AWS Docker Swarm module I use cloud-init to initialize the EC2 instance. However, Terraform says the resource is ready before cloud-init finishes. Is there a way of making it wait f...
Testate asked 31/5, 2020 at 13:5

3

Solved

I've created the following systemd unit in the cloud-init file: - path: /etc/systemd/system/multi-user.target.wants/docker-compose.service owner: root:root permissions: '0755' content: | [Unit...
Berber asked 29/4, 2018 at 11:6

4

Solved

Defining userdata for instances in AWS seems really useful for doing all kinds of bootstrap-type actions. Unfortunately, I have to use a custom CentOS AMI that didn't originate from one of the prov...
Praedial asked 1/5, 2014 at 15:56

3

When using cloud init's #cloud-config to create configuration files, how would I go about using variables to populate values? In my specific case I'd like to autostart EC2 instances as preconfigu...
Strep asked 14/5, 2013 at 10:24

1

i'm having trouble in setting up a full headless install for Ubuntu Server Focal (ARM) on a Raspberry pi 4 using cloud init config. The whole purpose of doing this is to simplify the SD card ...
Outdoor asked 16/7, 2020 at 8:38

4

Solved

my user-data script #! set -e -x echo `whoami` su root yum update -y touch ~/PLEASE_WORK.txt which is fed in from the command: ec2-run-instances ami-05355a6c -n 1 -g mongo-group -k mykey -f mys...
Gravy asked 22/7, 2013 at 16:16

2

I want my setup of openstack to work such that when I boot a new instance, 8.8.8.8 should be added to dns-nameservers. This is my old /etc/resolv.conf (in the new VM which was spawned in openstack...
Valera asked 11/2, 2018 at 20:52

5

Solved

I have a script that runs at boot (via rc.local) and sets my hostname based on the instance name it queries from the AWS CLI. It works, and at the end of the boot log it says " login:" At figured ...
Adamec asked 30/6, 2016 at 3:14

© 2022 - 2024 — McMap. All rights reserved.