cloud-init Questions
3
Solved
I wanted to bootstrap my Azure VM with Docker and Docker-compose using cloud-init. So far I tried something like below.
#cloud-config
package_update: true
package_upgrade: true
groups:
- docke...
Hereunder asked 28/2, 2019 at 1:5
2
Solved
When using write_files with cloud-init, is it possible to append content? If so, how?
write_files: [
{
"path": "/home/user/some-file",
"content": "\nLine to append!"
}
]
Payne asked 28/11, 2018 at 23:13
2
Solved
Following terraform best practice for bootstrapping instances, I'm working on a cloud-init config in order to bootstrap my instance. My only need is to install a specific package.
My terraform con...
Puttyroot asked 5/10, 2019 at 12:15
1
Solved
I use terraform to create an EC2 instance, and I use user_data to place a file in /var/lib/cloud/scripts/per-once. This is not executed - my question now is: is cloud-init run before user_data?
=...
Evangelize asked 30/9, 2019 at 16:4
1
Solved
I am provisioning a cloudformation stack. I am just trying to run the simplest possible cfn-initever on an instance started using a custom ami that was based on Amazon Linux 2:
EC2ESMasterNode1:
...
Nolannolana asked 2/1, 2019 at 8:2
1
Solved
I've got an EC2 resource defined in Cloudformation like so:
Resources:
FooInstance:
Type: 'AWS::EC2::Instance'
Properties:
blah: blah
blah: blah
UserData:
Fn::Base64: !Sub |
#!/bin/bash
/...
Pandurate asked 16/10, 2018 at 19:37
1
I am trying to disable cloud init network configuration. From the cloud init doc, I have to set network-config={config: disabled} in the kernel command line entry.
When I set it in /etc/default/gr...
Treadway asked 13/3, 2018 at 6:10
1
Solved
I've got a custom hardended RHEL 7.5 custom AMI. I want to use user data to complete some deploy time configuration. I've already ensured that /var/lib/cloud/* is removed before I create the AMI.
...
Tenebrific asked 9/5, 2018 at 14:4
1
This is the content of /etc/cloud/cloud.cfg of Ubuntu cloud 16.04 image:
# The top level settings are used as module
# and system configuration.
# A set of users which may be applied and/or used ...
Bronwen asked 15/9, 2017 at 1:28
3
Solved
I'm initializing spot instances running a derivative of the standard Ubuntu 13.04 AMI by pasting a shell script into the user-data field.
This works. The script runs. But it's difficult to debug b...
Division asked 9/9, 2013 at 5:17
1
Solved
I've installed Python 3.6 instead of the default 3.5 release on a new cloud server (Ubuntu 16.04). After I restarted the server, I found that it failed to execute cloud-init at startup with the fol...
Acarus asked 20/9, 2017 at 17:12
1
Solved
When spinning up an AWS or other cloud vendor instance, and using cloud-init to configure the host, what user do bash scripts that get called run as?
Bwana asked 14/6, 2017 at 18:39
4
Solved
I'm using CloudFormation to manage a Tomcat webserver stack but am tired of doing raw AMI management for new application versions. I'd like to move in the direction of Chef but don't have the time ...
Malley asked 6/7, 2012 at 15:59
1
By looking at runcmd code (/usr/lib/python2.6/site-packages/cloudinit/config/cc_runcmd.py)
I noticed there's no 'frequency' specified in comparison to other. Beside the only thing that scripts does...
Gulick asked 12/11, 2015 at 7:26
2
While creating vm using Nova boot I am supplying it a user-data script
(cloud-init script).
what I am wondering is, how can I specify in that cloud init script( or any other way to do it) :- to ...
Breannabreanne asked 17/2, 2015 at 21:0
1
Solved
What is the order of the directives in the cloud-config section of a cloud-init user-data object. This is important to avoid race type conditions.
I know bootcmd runs early and before runcmd, but...
Octan asked 4/12, 2015 at 19:16
1
Solved
How can I use a pipe to redirect the output of a command in my runcmd section of my cloud init script? The following fails:
runcmd:
- [curl, -sk, https://example.com/packages/current/install.bash...
Constituency asked 21/10, 2015 at 9:37
1
I want to do the following:
Create Digital Ocean droplets from my development machine (to distribute my tests, which are taking too long).
Securely issue a commands to the droplet.
Destroy the dr...
Slotter asked 21/8, 2015 at 16:32
1
I have created an environment with several Linux hosts based on KVM.
I'm using virt-manager to create different VMs and I'm using Linux bridges to create connectivity between VMs in different hosts...
Lian asked 8/5, 2015 at 13:29
4
Solved
We're planning to use AMI EC2 instances which are not "pre-baked". I.e. when they are spun up, they are bare installs of AWS linux. Our bootstrap process will pull in the various installs that we n...
Chelonian asked 16/8, 2012 at 20:55
2
Solved
I'm using AWS Cloudformation to setup numerous elements of network infrastructure (VPCs, SecurityGroups, Subnets, Autoscaling groups, etc) for my web application. I want the whole process to be aut...
Melosa asked 3/3, 2015 at 5:16
1
I boot strap a centos 6.5 AMI with this user data:
#cloud-config
users:
- default
- name: my-user
- sudo: ALL=(ALL) NOPASSWD:ALL
My machine comes up with the user cloud-user as the default us...
Advertising asked 5/9, 2014 at 15:3
1
Solved
I have a simple cloud-init user data that I am passing in to ec2. I set this data on my ec2 instance by right clicking the instance and setting the user data in there.
Following is my cloud-init u...
Wigging asked 23/5, 2014 at 1:56
6
Solved
It seems that the stock bootstrapping process is a bit lacking on Windows.
Linux has cloud-init which will install packages, store files, and run a bash script from user data.
Windows has ec2conf...
Paulettepauley asked 6/10, 2011 at 16:36
2
Solved
I'm building a stack that needs access to a private S3 bucket to download the most current version of my application. I'm using IAM roles, a relatively new AWS feature that allows EC2 instances to ...
Chiba asked 19/7, 2012 at 18:56
© 2022 - 2024 — McMap. All rights reserved.