summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-chef.txt
diff options
context:
space:
mode:
authorLorin Hochstein <lorin@nimbisservices.com>2012-04-05 22:27:32 -0400
committerLorin Hochstein <lorin@nimbisservices.com>2012-04-05 22:27:32 -0400
commitbf4240cca6a5eba30e444744aaadf23e2b0e4124 (patch)
tree1ac10ce7dbcbfcc97d4f476ee8de35b311d16e15 /doc/examples/cloud-config-chef.txt
parentc2a4447527d5e8b2e2999b6f1832577203a64f2a (diff)
downloadvyos-cloud-init-bf4240cca6a5eba30e444744aaadf23e2b0e4124.tar.gz
vyos-cloud-init-bf4240cca6a5eba30e444744aaadf23e2b0e4124.zip
Fixed opscode repo in chef recipe
Also added some comments and captured the output
Diffstat (limited to 'doc/examples/cloud-config-chef.txt')
-rw-r--r--doc/examples/cloud-config-chef.txt22
1 files changed, 18 insertions, 4 deletions
diff --git a/doc/examples/cloud-config-chef.txt b/doc/examples/cloud-config-chef.txt
index e9372144..6d50441b 100644
--- a/doc/examples/cloud-config-chef.txt
+++ b/doc/examples/cloud-config-chef.txt
@@ -1,12 +1,21 @@
#cloud-config
#
-# This is an example file to automatically setup chef and run a list of recipes
-# when the instance boots for the first time.
+# This is an example file to automatically install chef-client and run a
+# list of recipes when the instance boots for the first time.
# Make sure that this file is valid yaml before starting instances.
# It should be passed as user-data when starting the instance.
+#
+# This example assumes the instance is 12.04 (precise)
+
+
+# The default is to install from packages.
+# In this example, we show how to specify the opscode repository for
+# installing from packages, but we install chef from gems because
+# cloud-init doesn't install opscode's GPG key so packages fail to install
-# The default is to install from packages. If you want the latest packages from Opscode, be sure to add their repo:
-apt_mirror: http://apt.opscode.com/
+
+apt_sources:
+ - source: "deb http://apt.opscode.com/ precise-0.10 main"
chef:
@@ -42,3 +51,8 @@ chef:
prefork:
maxclients: 100
keepalive: "off"
+
+
+# Capture all subprocess output into a logfile
+# Useful for troubleshooting cloud-init issues
+output: {all: '| tee -a /var/log/cloud-init-output.log'}