Blame doc/examples/cloud-config-puppet.txt

Packit Service a04d08
#cloud-config
Packit Service a04d08
#
Packit Service a04d08
# This is an example file to automatically setup and run puppetd
Packit Service a04d08
# when the instance boots for the first time.
Packit Service a04d08
# Make sure that this file is valid yaml before starting instances.
Packit Service a04d08
# It should be passed as user-data when starting the instance.
Packit Service a04d08
puppet:
Packit Service 751c4a
  # Every key present in the conf object will be added to puppet.conf:
Packit Service 751c4a
  # [name]
Packit Service 751c4a
  # subkey=value
Packit Service 751c4a
  #
Packit Service 751c4a
  # For example the configuration below will have the following section
Packit Service 751c4a
  # added to puppet.conf:
Packit Service 751c4a
  # [puppetd]
Packit Service 751c4a
  # server=puppetmaster.example.org
Packit Service 751c4a
  # certname=i-0123456.ip-X-Y-Z.cloud.internal
Packit Service 751c4a
  #
Packit Service 751c4a
  # The puppmaster ca certificate will be available in 
Packit Service 751c4a
  # /var/lib/puppet/ssl/certs/ca.pem
Packit Service 751c4a
  conf:
Packit Service 751c4a
    agent:
Packit Service 751c4a
      server: "puppetmaster.example.org"
Packit Service 751c4a
      # certname supports substitutions at runtime:
Packit Service 751c4a
      #   %i: instanceid 
Packit Service 751c4a
      #       Example: i-0123456
Packit Service 751c4a
      #   %f: fqdn of the machine
Packit Service 751c4a
      #       Example: ip-X-Y-Z.cloud.internal
Packit Service 751c4a
      #
Packit Service 751c4a
      # NB: the certname will automatically be lowercased as required by puppet
Packit Service 751c4a
      certname: "%i.%f"
Packit Service 751c4a
    # ca_cert is a special case. It won't be added to puppet.conf.
Packit Service 751c4a
    # It holds the puppetmaster certificate in pem format. 
Packit Service 751c4a
    # It should be a multi-line string (using the | yaml notation for 
Packit Service 751c4a
    # multi-line strings).
Packit Service 751c4a
    # The puppetmaster certificate is located in 
Packit Service 751c4a
    # /var/lib/puppet/ssl/ca/ca_crt.pem on the puppetmaster host.
Packit Service 751c4a
    #
Packit Service 751c4a
    ca_cert: |
Packit Service 751c4a
      -----BEGIN CERTIFICATE-----
Packit Service 751c4a
      MIICCTCCAXKgAwIBAgIBATANBgkqhkiG9w0BAQUFADANMQswCQYDVQQDDAJjYTAe
Packit Service 751c4a
      Fw0xMDAyMTUxNzI5MjFaFw0xNTAyMTQxNzI5MjFaMA0xCzAJBgNVBAMMAmNhMIGf
Packit Service 751c4a
      MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCu7Q40sm47/E1Pf+r8AYb/V/FWGPgc
Packit Service 751c4a
      b014OmNoX7dgCxTDvps/h8Vw555PdAFsW5+QhsGr31IJNI3kSYprFQcYf7A8tNWu
Packit Service 751c4a
      1MASW2CfaEiOEi9F1R3R4Qlz4ix+iNoHiUDTjazw/tZwEdxaQXQVLwgTGRwVa+aA
Packit Service 751c4a
      qbutJKi93MILLwIDAQABo3kwdzA4BglghkgBhvhCAQ0EKxYpUHVwcGV0IFJ1Ynkv
Packit Service 751c4a
      T3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwDwYDVR0TAQH/BAUwAwEB/zAd
Packit Service 751c4a
      BgNVHQ4EFgQUu4+jHB+GYE5Vxo+ol1OAhevspjAwCwYDVR0PBAQDAgEGMA0GCSqG
Packit Service 751c4a
      SIb3DQEBBQUAA4GBAH/rxlUIjwNb3n7TXJcDJ6MMHUlwjr03BDJXKb34Ulndkpaf
Packit Service 751c4a
      +GAlzPXWa7bO908M9I8RnPfvtKnteLbvgTK+h+zX1XCty+S2EQWk29i2AdoqOTxb
Packit Service 751c4a
      hppiGMp0tT5Havu4aceCXiy2crVcudj3NFciy8X66SoECemW9UYDCb9T5D0d
Packit Service 751c4a
      -----END CERTIFICATE-----