chef-boneyard / knife-vcair

Knife plugin for working with VMware's vCloud Air Network
Apache License 2.0
8 stars 9 forks source link

Test and document Linux bootstrapping procedure #14

Closed cheeseplus closed 10 years ago

cheeseplus commented 10 years ago

From @jicowan

Assumption: you are using DHCP to assign IP addresses and name servers. Neither the CentOS template or the Ubuntu template have name servers defined. Bootstrapping the Chef client will fail after the VM is created because it cannot resolve www.opscode.com. Consider including instructions that explain how to modify and/or replace the resolv.conf file after the ssh session is established.

cheeseplus commented 10 years ago

So the way I've just successfully tested involves using the --customization-script option as in the Windows example and having that set the resolvers to something like Google's public DNS.

jicowan commented 10 years ago

Thanks. Did you test the script against a Linux image or was it only for Windows?

Sent from my iPhone

On Sep 26, 2014, at 6:10 PM, Seth Thomas notifications@github.com wrote:

So the way I've just successfully tested involves using the --cusomtization-script option as in the Windows example and having that set the resolvers to something like Google's public DNS.

— Reply to this email directly or view it on GitHub.

cheeseplus commented 10 years ago

For the first pass I tested against CentOS 6.4 64bit which required a script like

#!/bin/bash
echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" >> /etc/resolv.conf

I am updating the script for Ubuntu and will add an example to the repository with a note.

jicowan commented 10 years ago

Great. Thanks. Are you planning to test bootstrapping from a template or a custom distro? I couldn't get it to work from knife vcair. It kept defaulting to chef-full regardless which directory I put my erb file in.

Sent from my iPhone

On Sep 26, 2014, at 7:44 PM, Seth Thomas notifications@github.com wrote:

For the first pass I tested against CentOS 6.4 64bit which required a script like

!/bin/bash

echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" >> /etc/resolv.conf I am updating the script for Ubuntu and will add an example to the repository with a note.

— Reply to this email directly or view it on GitHub.

cheeseplus commented 10 years ago

Right now I'm just using the customization script to get DNS working and using the default chef-full.

cheeseplus commented 10 years ago

I've got a bootstrap script that works for both CentOS 6.4 and Ubuntu12.04: https://gist.github.com/cheeseplus/93e98dfe14254882dd9f

I'll try testing with the custom template and distro flags next.

cheeseplus commented 10 years ago

Closing out now after fa5c7627121d956b52a9d5affac1e35c4b64a95d