So this a post install script that I run in my pxe boots, I know there are other ways but hey it works for me. Joshua ### chef pxe with BASE_ROLE apt-get update apt-get install -y chef #Add to correct roles in chef based on Kickstart Meta Data cat <<EOF > /root/client.json { "run_list": [ "role[BASE_ROLE]" ] } EOF cat <<EOF > /etc/chef/validation.pem -----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAtZiqYCINmpS85lkCOcO16apn9ssvLBcKwHoehJ4J+He2zj6a REMOVED E4upmisnerbcvdqQ7TffXSfqsLD6jv4ofY2jvuMuIE4ZFCEY1BDqBg== -----END RSA PRIVATE KEY----- EOF # register with the server chef-client -j /root/client.json sleep 30 # We run one more time to make sure its all good chef-client sleep 30 chef-client ### end chef pxe with BASE_ROLE On Jul 23, 2010, at 9:17 PM, Leinartas, Michael wrote:
|
Archive powered by MHonArc 2.6.16.