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

« back to all changes in this revision

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

  • Committer: Scott Moser
  • Date: 2016-08-10 15:06:15 UTC
  • Revision ID: smoser@ubuntu.com-20160810150615-ma2fv107w3suy1ma
README: Mention move of revision control to git.

cloud-init development has moved its revision control to git.
It is available at 
  https://code.launchpad.net/cloud-init

Clone with 
  git clone https://git.launchpad.net/cloud-init
or
  git clone git+ssh://git.launchpad.net/cloud-init

For more information see
  https://git.launchpad.net/cloud-init/tree/HACKING.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#cloud-config
2
 
#
3
 
# This is an example file to automatically setup and run puppetd
4
 
# when the instance boots for the first time.
5
 
# Make sure that this file is valid yaml before starting instances.
6
 
# It should be passed as user-data when starting the instance.
7
 
puppet:
8
 
 # Every key present in the conf object will be added to puppet.conf:
9
 
 # [name]
10
 
 # subkey=value
11
 
 #
12
 
 # For example the configuration below will have the following section
13
 
 # added to puppet.conf:
14
 
 # [puppetd]
15
 
 # server=puppetmaster.example.org
16
 
 # certname=i-0123456.ip-X-Y-Z.cloud.internal
17
 
 #
18
 
 # The puppmaster ca certificate will be available in 
19
 
 # /var/lib/puppet/ssl/certs/ca.pem
20
 
 conf:
21
 
   agent:
22
 
     server: "puppetmaster.example.org"
23
 
     # certname supports substitutions at runtime:
24
 
     #   %i: instanceid 
25
 
     #       Example: i-0123456
26
 
     #   %f: fqdn of the machine
27
 
     #       Example: ip-X-Y-Z.cloud.internal
28
 
     #
29
 
     # NB: the certname will automatically be lowercased as required by puppet
30
 
     certname: "%i.%f"
31
 
   # ca_cert is a special case. It won't be added to puppet.conf.
32
 
   # It holds the puppetmaster certificate in pem format. 
33
 
   # It should be a multi-line string (using the | yaml notation for 
34
 
   # multi-line strings).
35
 
   # The puppetmaster certificate is located in 
36
 
   # /var/lib/puppet/ssl/ca/ca_crt.pem on the puppetmaster host.
37
 
   #
38
 
   ca_cert: |
39
 
     -----BEGIN CERTIFICATE-----
40
 
     MIICCTCCAXKgAwIBAgIBATANBgkqhkiG9w0BAQUFADANMQswCQYDVQQDDAJjYTAe
41
 
     Fw0xMDAyMTUxNzI5MjFaFw0xNTAyMTQxNzI5MjFaMA0xCzAJBgNVBAMMAmNhMIGf
42
 
     MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCu7Q40sm47/E1Pf+r8AYb/V/FWGPgc
43
 
     b014OmNoX7dgCxTDvps/h8Vw555PdAFsW5+QhsGr31IJNI3kSYprFQcYf7A8tNWu
44
 
     1MASW2CfaEiOEi9F1R3R4Qlz4ix+iNoHiUDTjazw/tZwEdxaQXQVLwgTGRwVa+aA
45
 
     qbutJKi93MILLwIDAQABo3kwdzA4BglghkgBhvhCAQ0EKxYpUHVwcGV0IFJ1Ynkv
46
 
     T3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwDwYDVR0TAQH/BAUwAwEB/zAd
47
 
     BgNVHQ4EFgQUu4+jHB+GYE5Vxo+ol1OAhevspjAwCwYDVR0PBAQDAgEGMA0GCSqG
48
 
     SIb3DQEBBQUAA4GBAH/rxlUIjwNb3n7TXJcDJ6MMHUlwjr03BDJXKb34Ulndkpaf
49
 
     +GAlzPXWa7bO908M9I8RnPfvtKnteLbvgTK+h+zX1XCty+S2EQWk29i2AdoqOTxb
50
 
     hppiGMp0tT5Havu4aceCXiy2crVcudj3NFciy8X66SoECemW9UYDCb9T5D0d
51
 
     -----END CERTIFICATE-----