CloudInit

Testing with Checkbox in Cloud-init

  1. Create a cloud-config that uses the test jobs you've created in checkbox:
     #cloud-config
     apt_sources:
      - source: "ppa:<your-launchpad-id>/opencompute"
     packages:
      - ipmitool   ***For ipmitool test jobs***
      - checkbox
      - checkbox-cli
     runcmd:
      - [ wget, "http://ipmiutil.sourceforge.net/FILES/ipmiutil_2.9.0_ubuntu12_amd64.deb" ]
      - [ dpkg, -i, ipmiutil_2.9.0_ubuntu12_amd64.deb ]
      - [ sh, -xc, "echo 'blacklist mei' >> /etc/modprobe.d/blacklist.conf" ]
      - [ export, OC_IPMI_TARGET=192.168.1.124 ]
      - [ export, OC_IPMI_ADMIN=username ]
      - [ export, OC_IPMI_ADMIN_PASSWORD=password ]
      - [ export, OC_IPMI_USERNAME=username ]
      - [ export, OC_IPMI_PASSWORD=password ]
      - [ export, OC_IPMI_OPERATOR=username ]
      - [ export, OC_IPMI_OPERATOR_PASSWORD=password ]
      - [ checkbox-cli, --config='checkbox/plugins/delay_prompt/timeout=60', --config='checkbox/plugins/user_interface/interface_class=UserInterface', -W, /usr/share/checkbox/data/whitelists/opencompute.whitelist ]
      - [ sh, -xc, "cp .cache/checkbox/submission.xml /tmp" ]
    B. Check your test results in the submission.xml.

OpenCompute/Testing/CloudInit (last edited 2013-05-17 20:03:52 by david-duffey)