summaryrefslogtreecommitdiff
path: root/doc/examples/cloud-config-chef-oneiric.txt
diff options
context:
space:
mode:
authorLorin Hochstein <lorin@nimbisservices.com>2012-04-07 18:16:26 -0400
committerLorin Hochstein <lorin@nimbisservices.com>2012-04-07 18:16:26 -0400
commit7ca1b16205932849fdaeb93ec1b7a3e58862e049 (patch)
tree6853cfbaf4ce1ab6604596a616d53078c1f7f16c /doc/examples/cloud-config-chef-oneiric.txt
parent144a68bf215fad11325e958242b0cda85497e9d5 (diff)
downloadvyos-cloud-init-7ca1b16205932849fdaeb93ec1b7a3e58862e049.tar.gz
vyos-cloud-init-7ca1b16205932849fdaeb93ec1b7a3e58862e049.zip
Added an example for using Chef with oneiric
Diffstat (limited to 'doc/examples/cloud-config-chef-oneiric.txt')
-rw-r--r--doc/examples/cloud-config-chef-oneiric.txt92
1 files changed, 92 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-chef-oneiric.txt b/doc/examples/cloud-config-chef-oneiric.txt
new file mode 100644
index 00000000..c0174e53
--- /dev/null
+++ b/doc/examples/cloud-config-chef-oneiric.txt
@@ -0,0 +1,92 @@
+#cloud-config
+#
+# 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 11.10 (oneiric)
+
+
+# The default is to install from packages.
+
+# Key from http://apt.opscode.com/packages@opscode.com.gpg.key
+apt_sources:
+ - source: "deb http://apt.opscode.com/ oneiric-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/bMeGfdMlv8Gf2XPp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YQ9X
+ Q8NqqR6pydprRFqWe47hsAN7BoYuhWqTtOLSBmnAnzTR5pURoqcquWYiiEavZixJ
+ 3ZRAq/HMGioJEtMFrvsZjGXuzef7f0ytfR1zYeLVWnL9Bd32CueBlI7dhYwkFe+V
+ Ep5jWOCj02C1wHcwt+uIRDJV6TdtbIiBYAdOMPk15+VBdweBXwMuYXr76+A7VeDL
+ zIhi7tKFo6WiwjKZq0dzctsJJjtIfr4K4vbiD9Ojg1iISQQYEQIACQUCSmkLtAIb
+ DAAKCRApQKupg++CauISAJ9CxYPOKhOxalBnVTLeNUkAHGg2gACeIsbobtaD4ZHG
+ 0GLl8EkfA8uhluM=
+ =zKAm
+ -----END PGP PUBLIC KEY BLOCK-----
+
+chef:
+
+ # Will fail on oneiric if install_type is "gems"
+ # see: https://bugs.launchpad.net/cloud-init/+bug/960576
+ install_type: "packages"
+
+ # Chef settings
+ server_url: "https://chef.yourorg.com:4000"
+
+ # Node Name
+ # Defaults to the instance-id if not present
+ node_name: "your-node-name"
+
+ # Environment
+ # Defaults to '_default' if not present
+ environment: "production"
+
+ # Default validation name is chef-validator
+ validation_name: "yourorg-validator"
+
+ # value of validation_cert is not used if validation_key defined,
+ # but variable needs to be defined
+ # See: https://bugs.launchpad.net/cloud-init/+bug/960547
+ validation_cert: "unused"
+ validation_key: |
+ -----BEGIN RSA PRIVATE KEY-----
+ YOUR-ORGS-VALIDATION-KEY-HERE
+ -----END RSA PRIVATE KEY-----
+
+ # A run list for a first boot json
+ run_list:
+ - "recipe[apache2]"
+ - "role[db]"
+
+ # Specify a list of initial attributes used by the cookbooks
+ initial_attributes:
+ apache:
+ 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'}