Blame tests/cloud_tests/testcases/examples/install_run_chef_recipes.yaml

Packit Service a04d08
#
Packit Service a04d08
# From cloud config examples on cloudinit.readthedocs.io
Packit Service a04d08
#
Packit Service a04d08
# 2017-03-31: Disabled as depends on third party apt repository
Packit Service a04d08
#
Packit Service a04d08
enabled: False
Packit Service a04d08
cloud_config: |
Packit Service a04d08
  #cloud-config
Packit Service a04d08
  # Key from https://packages.chef.io/chef.asc
Packit Service a04d08
  apt:
Packit Service 11b429
    source1:
Packit Service 11b429
      source: "deb http://packages.chef.io/repos/apt/stable $RELEASE main"
Packit Service 11b429
      key: |
Packit Service 11b429
        -----BEGIN PGP PUBLIC KEY BLOCK-----
Packit Service 11b429
        Version: GnuPG v1.4.12 (Darwin)
Packit Service 11b429
        Comment: GPGTools - http://gpgtools.org
Packit Service a04d08
Packit Service 11b429
        mQGiBEppC7QRBADfsOkZU6KZK+YmKw4wev5mjKJEkVGlus+NxW8wItX5sGa6kdUu
Packit Service 11b429
        twAyj7Yr92rF+ICFEP3gGU6+lGo0Nve7KxkN/1W7/m3G4zuk+ccIKmjp8KS3qn99
Packit Service 11b429
        dxy64vcji9jIllVa+XXOGIp0G8GEaj7mbkixL/bMeGfdMlv8Gf2XPpp9vwCgn/GC
Packit Service 11b429
        JKacfnw7MpLKUHOYSlb//JsEAJqao3ViNfav83jJKEkD8cf59Y8xKia5OpZqTK5W
Packit Service 11b429
        ShVnNWS3U5IVQk10ZDH97Qn/YrK387H4CyhLE9mxPXs/ul18ioiaars/q2MEKU2I
Packit Service 11b429
        XKfV21eMLO9LYd6Ny/Kqj8o5WQK2J6+NAhSwvthZcIEphcFignIuobP+B5wNFQpe
Packit Service 11b429
        DbKfA/0WvN2OwFeWRcmmd3Hz7nHTpcnSF+4QX6yHRF/5BgxkG6IqBIACQbzPn6Hm
Packit Service 11b429
        sMtm/SVf11izmDqSsQptCrOZILfLX/mE+YOl+CwWSHhl+YsFts1WOuh1EhQD26aO
Packit Service 11b429
        Z84HuHV5HFRWjDLw9LriltBVQcXbpfSrRP5bdr7Wh8vhqJTPjrQnT3BzY29kZSBQ
Packit Service 11b429
        YWNrYWdlcyA8cGFja2FnZXNAb3BzY29kZS5jb20+iGAEExECACAFAkppC7QCGwMG
Packit Service 11b429
        CwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRApQKupg++Caj8sAKCOXmdG36gWji/K
Packit Service 11b429
        +o+XtBfvdMnFYQCfTCEWxRy2BnzLoBBFCjDSK6sJqCu0IENIRUYgUGFja2FnZXMg
Packit Service 11b429
        PHBhY2thZ2VzQGNoZWYuaW8+iGIEExECACIFAlQwYFECGwMGCwkIBwMCBhUIAgkK
Packit Service 11b429
        CwQWAgMBAh4BAheAAAoJEClAq6mD74JqX94An26z99XOHWpLN8ahzm7cp13t4Xid
Packit Service 11b429
        AJ9wVcgoUBzvgg91lKfv/34cmemZn7kCDQRKaQu0EAgAg7ZLCVGVTmLqBM6njZEd
Packit Service 11b429
        Zbv+mZbvwLBSomdiqddE6u3eH0X3GuwaQfQWHUVG2yedyDMiG+EMtCdEeeRebTCz
Packit Service 11b429
        SNXQ8Xvi22hRPoEsBSwWLZI8/XNg0n0f1+GEr+mOKO0BxDB2DG7DA0nnEISxwFkK
Packit Service 11b429
        OFJFebR3fRsrWjj0KjDxkhse2ddU/jVz1BY7Nf8toZmwpBmdozETMOTx3LJy1HZ/
Packit Service 11b429
        Te9FJXJMUaB2lRyluv15MVWCKQJro4MQG/7QGcIfrIZNfAGJ32DDSjV7/YO+IpRY
Packit Service 11b429
        IL4CUBQ65suY4gYUG4jhRH6u7H1p99sdwsg5OIpBe/v2Vbc/tbwAB+eJJAp89Zeu
Packit Service 11b429
        twADBQf/ZcGoPhTGFuzbkcNRSIz+boaeWPoSxK2DyfScyCAuG41CY9+g0HIw9Sq8
Packit Service 11b429
        DuxQvJ+vrEJjNvNE3EAEdKl/zkXMZDb1EXjGwDi845TxEMhhD1dDw2qpHqnJ2mtE
Packit Service 11b429
        WpZ7juGwA3sGhi6FapO04tIGacCfNNHmlRGipyq5ZiKIRq9mLEndlECr8cwaKgkS
Packit Service 11b429
        0wWu+xmMZe7N5/t/TK19HXNh4tVacv0F3fYK54GUjt2FjCQV75USnmNY4KPTYLXA
Packit Service 11b429
        dzC364hEMlXpN21siIFgB04w+TXn5UF3B4FfAy5hevvr4DtV4MvMiGLu0oWjpaLC
Packit Service 11b429
        MpmrR3Ny2wkmO0h+vgri9uIP06ODWIhJBBgRAgAJBQJKaQu0AhsMAAoJEClAq6mD
Packit Service 11b429
        74Jq4hIAoJ5KrYS8kCwj26SAGzglwggpvt3CAJ0bekyky56vNqoegB+y4PQVDv4K
Packit Service 11b429
        zA==
Packit Service 11b429
        =IxPr
Packit Service 11b429
        -----END PGP PUBLIC KEY BLOCK-----
Packit Service a04d08
Packit Service a04d08
  chef:
Packit Service a04d08
Packit Service a04d08
   # Valid values are 'gems' and 'packages' and 'omnibus'
Packit Service a04d08
   install_type: "packages"
Packit Service a04d08
Packit Service a04d08
   # Boolean: run 'install_type' code even if chef-client
Packit Service a04d08
   #          appears already installed.
Packit Service a04d08
   force_install: false
Packit Service a04d08
Packit Service a04d08
   # Chef settings
Packit Service a04d08
   server_url: "https://chef.yourorg.com:4000"
Packit Service a04d08
Packit Service a04d08
   # Node Name
Packit Service a04d08
   # Defaults to the instance-id if not present
Packit Service a04d08
   node_name: "your-node-name"
Packit Service a04d08
Packit Service a04d08
   # Environment
Packit Service a04d08
   # Defaults to '_default' if not present
Packit Service a04d08
   environment: "production"
Packit Service a04d08
Packit Service a04d08
   # Default validation name is chef-validator
Packit Service a04d08
   validation_name: "yourorg-validator"
Packit Service a04d08
   # if validation_cert's value is "system" then it is expected
Packit Service a04d08
   # that the file already exists on the system.
Packit Service a04d08
   validation_cert: |
Packit Service a04d08
       -----BEGIN RSA PRIVATE KEY-----
Packit Service a04d08
       YOUR-ORGS-VALIDATION-KEY-HERE
Packit Service a04d08
       -----END RSA PRIVATE KEY-----
Packit Service a04d08
Packit Service a04d08
   # A run list for a first boot json
Packit Service a04d08
   run_list:
Packit Service a04d08
    - "recipe[apache2]"
Packit Service a04d08
    - "role[db]"
Packit Service a04d08
Packit Service a04d08
   # Specify a list of initial attributes used by the cookbooks
Packit Service a04d08
   initial_attributes:
Packit Service a04d08
      apache:
Packit Service a04d08
        prefork:
Packit Service a04d08
          maxclients: 100
Packit Service a04d08
        keepalive: "off"
Packit Service a04d08
Packit Service a04d08
   # if install_type is 'omnibus', change the url to download
Packit Service a04d08
   omnibus_url: "https://www.opscode.com/chef/install.sh"
Packit Service a04d08
Packit Service a04d08
Packit Service a04d08
  # Capture all subprocess output into a logfile
Packit Service a04d08
  # Useful for troubleshooting cloud-init issues
Packit Service a04d08
  output: {all: '| tee -a /var/log/cloud-init-output.log'}
Packit Service a04d08
Packit Service a04d08
collect_scripts:
Packit Service a04d08
  chef_installed: |
Packit Service a04d08
    #!/bin/sh
Packit Service a04d08
    dpkg-query -W -f '${Status}\n' chef
Packit Service a04d08
Packit Service a04d08
# vi: ts=4 expandtab