summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-chef.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/cloud-config-chef.txt')
-rw-r--r--doc/examples/cloud-config-chef.txt52
1 files changed, 47 insertions, 5 deletions
diff --git a/doc/examples/cloud-config-chef.txt b/doc/examples/cloud-config-chef.txt
index e9372144..f87472ec 100644
--- a/doc/examples/cloud-config-chef.txt
+++ b/doc/examples/cloud-config-chef.txt
@@ -1,17 +1,54 @@
#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.
-# 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/
+# Key from http://apt.opscode.com/packages@opscode.com.gpg.key
+apt_sources:
+ - source: "deb http://apt.opscode.com/ $RELEASE-0.10 main"
+ key: |
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
+ Version: GnuPG v1.4.9 (GNU/Linux)
+
+ mQGiBEppC7QRBADfsOkZU6KZK+YmKw4wev5mjKJEkVGlus+NxW8wItX5sGa6kdUu
+ twAyj7Yr92rF+ICFEP3gGU6+lGo0Nve7KxkN/1W7/m3G4zuk+ccIKmjp8KS3qn99
+ dxy64vcji9jIllVa+XXOGIp0G8GEaj7mbkixL/bMeGfdMlv8Gf2XPpp9vwCgn/GC
+ JKacfnw7MpLKUHOYSlb//JsEAJqao3ViNfav83jJKEkD8cf59Y8xKia5OpZqTK5W
+ ShVnNWS3U5IVQk10ZDH97Qn/YrK387H4CyhLE9mxPXs/ul18ioiaars/q2MEKU2I
+ XKfV21eMLO9LYd6Ny/Kqj8o5WQK2J6+NAhSwvthZcIEphcFignIuobP+B5wNFQpe
+ DbKfA/0WvN2OwFeWRcmmd3Hz7nHTpcnSF+4QX6y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ojg1iISQQYEQIACQUCSmkLtAIb
+ DAAKCRApQKupg++CauISAJ9CxYPOKhOxalBnVTLeNUkAHGg2gACeIsbobtaD4ZHG
+ 0GLl8EkfA8uhluM=
+ =zKAm
+ -----END PGP PUBLIC KEY BLOCK-----
chef:
# Valid values are 'gems' and 'packages'
- install_type: "gems"
+ install_type: "packages"
# Chef settings
server_url: "https://chef.yourorg.com:4000"
@@ -42,3 +79,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'}