Closed cheeseplus closed 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.
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.
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.
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.
Right now I'm just using the customization script to get DNS working and using the default chef-full.
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.
Closing out now after fa5c7627121d956b52a9d5affac1e35c4b64a95d
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.