Puppet

For a full list of keys, refer to the Puppet module schema.

Example 1

 1#cloud-config
 2puppet:
 3  install: true
 4  version: "7.7.0"
 5  install_type: "aio"
 6  collection: "puppet7"
 7  aio_install_url: 'https://git.io/JBhoQ'
 8  cleanup: true
 9  conf_file: "/etc/puppet/puppet.conf"
10  ssl_dir: "/var/lib/puppet/ssl"
11  csr_attributes_path: "/etc/puppet/csr_attributes.yaml"
12  exec: true
13  exec_args: ['--test']
14  conf:
15    agent:
16      server: "puppetserver.example.org"
17      certname: "%i.%f"
18    ca_cert: |
19      -----BEGIN CERTIFICATE-----
20      MIICCTCCAXKgAwIBAgIBATANBgkqhkiG9w0BAQUFADANMQswCQYDVQQDDAJjYTAe
21      Fw0xMDAyMTUxNzI5MjFaFw0xNTAyMTQxNzI5MjFaMA0xCzAJBgNVBAMMAmNhMIGf
22      MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCu7Q40sm47/E1Pf+r8AYb/V/FWGPgc
23      b014OmNoX7dgCxTDvps/h8Vw555PdAFsW5+QhsGr31IJNI3kSYprFQcYf7A8tNWu
24      1MASW2CfaEiOEi9F1R3R4Qlz4ix+iNoHiUDTjazw/tZwEdxaQXQVLwgTGRwVa+aA
25      qbutJKi93MILLwIDAQABo3kwdzA4BglghkgBhvhCAQ0EKxYpUHVwcGV0IFJ1Ynkv
26      T3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwDwYDVR0TAQH/BAUwAwEB/zAd
27      BgNVHQ4EFgQUu4+jHB+GYE5Vxo+ol1OAhevspjAwCwYDVR0PBAQDAgEGMA0GCSqG
28      SIb3DQEBBQUAA4GBAH/rxlUIjwNb3n7TXJcDJ6MMHUlwjr03BDJXKb34Ulndkpaf
29      +GAlzPXWa7bO908M9I8RnPfvtKnteLbvgTK+h+zX1XCty+S2EQWk29i2AdoqOTxb
30      hppiGMp0tT5Havu4aceCXiy2crVcudj3NFciy8X66SoECemW9UYDCb9T5D0d
31      -----END CERTIFICATE-----
32  csr_attributes:
33    custom_attributes:
34      1.2.840.113549.1.9.7: 342thbjkt82094y0uthhor289jnqthpc2290
35    extension_requests:
36      pp_uuid: ED803750-E3C7-44F5-BB08-41A04433FE2E
37      pp_image_name: my_ami_image
38      pp_preshared_key: 342thbjkt82094y0uthhor289jnqthpc2290

Example 2

1#cloud-config
2puppet:
3  install_type: "packages"
4  package_name: "puppet"
5  exec: false