~cloud-init-dev/cloud-init/trunk

« back to all changes in this revision

Viewing changes to doc/examples/cloud-config-chef.txt

  • Committer: Scott Moser
  • Date: 2012-04-09 14:46:01 UTC
  • mfrom: (554.1.4 chef-example)
  • Revision ID: smoser@ubuntu.com-20120409144601-oqtjwq4qdqrlghng
fix chef documentation (LP: #960564)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#cloud-config
2
2
#
3
 
# This is an example file to automatically setup chef and run a list of recipes
4
 
# when the instance boots for the first time.
 
3
# This is an example file to automatically install chef-client and run a 
 
4
# list of recipes when the instance boots for the first time.
5
5
# Make sure that this file is valid yaml before starting instances.
6
6
# It should be passed as user-data when starting the instance.
7
 
 
8
 
# The default is to install from packages. If you want the latest packages from Opscode, be sure to add their repo:
9
 
apt_mirror: http://apt.opscode.com/
 
7
#
 
8
# This example assumes the instance is 12.04 (precise)
 
9
 
 
10
 
 
11
# The default is to install from packages. 
 
12
 
 
13
# Key from http://apt.opscode.com/packages@opscode.com.gpg.key
 
14
apt_sources:
 
15
 - source: "deb http://apt.opscode.com/ $RELEASE-0.10 main"
 
16
   key: |
 
17
     -----BEGIN PGP PUBLIC KEY BLOCK-----
 
18
     Version: GnuPG v1.4.9 (GNU/Linux)
 
19
     
 
20
     mQGiBEppC7QRBADfsOkZU6KZK+YmKw4wev5mjKJEkVGlus+NxW8wItX5sGa6kdUu
 
21
     twAyj7Yr92rF+ICFEP3gGU6+lGo0Nve7KxkN/1W7/m3G4zuk+ccIKmjp8KS3qn99
 
22
     dxy64vcji9jIllVa+XXOGIp0G8GEaj7mbkixL/bMeGfdMlv8Gf2XPpp9vwCgn/GC
 
23
     JKacfnw7MpLKUHOYSlb//JsEAJqao3ViNfav83jJKEkD8cf59Y8xKia5OpZqTK5W
 
24
     ShVnNWS3U5IVQk10ZDH97Qn/YrK387H4CyhLE9mxPXs/ul18ioiaars/q2MEKU2I
 
25
     XKfV21eMLO9LYd6Ny/Kqj8o5WQK2J6+NAhSwvthZcIEphcFignIuobP+B5wNFQpe
 
26
     DbKfA/0WvN2OwFeWRcmmd3Hz7nHTpcnSF+4QX6yHRF/5BgxkG6IqBIACQbzPn6Hm
 
27
     sMtm/SVf11izmDqSsQptCrOZILfLX/mE+YOl+CwWSHhl+YsFts1WOuh1EhQD26aO
 
28
     Z84HuHV5HFRWjDLw9LriltBVQcXbpfSrRP5bdr7Wh8vhqJTPjrQnT3BzY29kZSBQ
 
29
     YWNrYWdlcyA8cGFja2FnZXNAb3BzY29kZS5jb20+iGAEExECACAFAkppC7QCGwMG
 
30
     CwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRApQKupg++Caj8sAKCOXmdG36gWji/K
 
31
     +o+XtBfvdMnFYQCfTCEWxRy2BnzLoBBFCjDSK6sJqCu5Ag0ESmkLtBAIAIO2SwlR
 
32
     lU5i6gTOp42RHWW7/pmW78CwUqJnYqnXROrt3h9F9xrsGkH0Fh1FRtsnncgzIhvh
 
33
     DLQnRHnkXm0ws0jV0PF74ttoUT6BLAUsFi2SPP1zYNJ9H9fhhK/pjijtAcQwdgxu
 
34
     wwNJ5xCEscBZCjhSRXm0d30bK1o49Cow8ZIbHtnXVP41c9QWOzX/LaGZsKQZnaMx
 
35
     EzDk8dyyctR2f03vRSVyTFGgdpUcpbr9eTFVgikCa6ODEBv+0BnCH6yGTXwBid9g
 
36
     w0o1e/2DviKUWCC+AlAUOubLmOIGFBuI4UR+rux9affbHcLIOTiKQXv79lW3P7W8
 
37
     AAfniSQKfPWXrrcAAwUH/2XBqD4Uxhbs25HDUUiM/m6Gnlj6EsStg8n0nMggLhuN
 
38
     QmPfoNByMPUqvA7sULyfr6xCYzbzRNxABHSpf85FzGQ29RF4xsA4vOOU8RDIYQ9X
 
39
     Q8NqqR6pydprRFqWe47hsAN7BoYuhWqTtOLSBmnAnzTR5pURoqcquWYiiEavZixJ
 
40
     3ZRAq/HMGioJEtMFrvsZjGXuzef7f0ytfR1zYeLVWnL9Bd32CueBlI7dhYwkFe+V
 
41
     Ep5jWOCj02C1wHcwt+uIRDJV6TdtbIiBYAdOMPk15+VBdweBXwMuYXr76+A7VeDL
 
42
     zIhi7tKFo6WiwjKZq0dzctsJJjtIfr4K4vbiD9Ojg1iISQQYEQIACQUCSmkLtAIb
 
43
     DAAKCRApQKupg++CauISAJ9CxYPOKhOxalBnVTLeNUkAHGg2gACeIsbobtaD4ZHG
 
44
     0GLl8EkfA8uhluM=
 
45
     =zKAm
 
46
     -----END PGP PUBLIC KEY BLOCK-----
10
47
 
11
48
chef:
12
49
 
13
50
 # Valid values are 'gems' and 'packages'
14
 
 install_type: "gems"
 
51
 install_type: "packages"
15
52
 
16
53
 # Chef settings
17
54
 server_url: "https://chef.yourorg.com:4000"
42
79
      prefork:
43
80
        maxclients: 100
44
81
      keepalive: "off"
 
82
 
 
83
 
 
84
# Capture all subprocess output into a logfile
 
85
# Useful for troubleshooting cloud-init issues
 
86
output: {all: '| tee -a /var/log/cloud-init-output.log'}