andsens / build-debian-cloud

This project has been superseeded by andsens/bootstrap-vz and is no longer maintained - Script to create Debian Squeeze & Wheezy Amazon Machine Images (AMIs) and Google Compute Engine images
Other
116 stars 43 forks source link

Sed the config file for cloud-init. #100

Closed JamesBromberger closed 10 years ago

JamesBromberger commented 10 years ago

Change the cloud config to the user admin, give it the bash shell to be consistent with what we have done until now; install the sudo package in user_packages. This probably needs to be reworked into an array of SED objects in the manifest so multiple files cna be updated, but right now it seems to be giving us a usable AMI in EC2.

andsens commented 10 years ago

Congratz on opening PR #100! :-) I am not entirely sure what exactly this plugin is doing, could you elaborate?

btw. I'll be merging the WIP branch into mainline soon.

JamesBromberger commented 10 years ago

On 8/10/2013 1:43 AM, Anders Ingemann wrote:

Congratz on opening PR #100 https://github.com/andsens/build-debian-cloud/pull/100! :-) I am not entirely sure what exactly this plugin is doing, could you elaborate?

It currently takes one rule to modify a file; see the ec2-ebs- manifest file - in this case, the backports plugin is installing cloud-init, and the sed plugin is modifying the cloud-init config file: set the inital user to 'admin', add the sudo entry, and set the 'admin' user's shell to bash. This maintains compatability with the currently released AMIs.

I'd like to migrate this to an array of sed rules. Each rule is a tuple

Note that for the 6.x (oldstable), I am planning to still use the existing shell scripts with no cloud-init support.

btw. I'll be merging the WIP branch https://github.com/andsens/build-debian-cloud/tree/WIP-partitioning into mainline soon.

I hadn't noticed this tree. Let me know which I should be basing from as it changes please! ;) James

/Mobile:/ +61 422 166 708, /Email:/ james_AT_rcpt.to

andsens commented 10 years ago

Oh, ok. Understood. That could be quite useful. The WIP branch needs some coding to work with the ec2 provider again. It'll be some time this week, but it wont be stable for the weekend. Merging...