- From: Kelly Goedert <
>
- To:
- Subject: [chef] automating chef client installation
- Date: Wed, 28 Dec 2011 11:18:28 -0200
Hi,
I am doing an automatic ubuntu installation and at the end of the installation I execute this post-install script that I hoped would create me a chef client on the newly installed machine.
#!/bin/bash
echo "changeme" | sudo -S cp /home/ubuntu/opscode.list /etc/apt/sources.list.d
echo "pass" | sudo -S mkdir -p /etc/apt/trusted.gpg.d
echo "pass" | sudo -S gpg --keyserver
keys.gnupg.net --recv-keys 83EF826A
echo "pass" | sudo -S gpg --export
">
| sudo tee /etc/apt/trusted.gpg.d/opscode-keyring.gpg > /dev/null
echo "pass" | sudo -S apt-get install opscode-keyring
echo "chef chef/chef_server_url string
http://10.1.1.8:4000" debconf-set-selections && apt-get install chef -y
echo "pass" | sudo -S cp /home/ubuntu/validation.pem /etc/chef
exit 0
Everything seems to work. The validation.pem is in the correct place, there is a chef-client process running, but, the client.rb in /etc/chef is empty. What am I missing here?
Thanks
Kelly
- [chef] automating chef client installation, Kelly Goedert, 12/28/2011
Archive powered by MHonArc 2.6.16.