info:
  summary: Create VM from openSUSE Tumbleweed Minimal and install KDE
  description: |+
               This KankuFile creates a VM, installs KDE and configures the display-manager
domain_name: openSUSE-Tumbleweed-kde
default_job: kanku-job
login_user: root
login_pass: linux

jobs:
 kanku-job:
  -
    use_module: Kanku::Handler::SetJobContext
    options:
      host_interface: eth0
  -
    use_module: Kanku::Handler::ImageDownload
    options:
      url: https://download.opensuse.org/tumbleweed/appliances/openSUSE-Tumbleweed-Minimal-VM.x86_64-kvm-and-xen-sdboot.qcow2
  -
    use_module: Kanku::Handler::CreateDomain
    options:
      memory: 8G
      vcpu: 4 
      use_9p: 1
      pwrand:
        users:
          - root
        recipients:
          - fschreiner@suse.de
      template: vm-x86_64-uefi-tpm2.0.tt2
      no_wait_for_bootloader: 1 
      installation:
        -
          expect: openSUSE
          send: e
          send_enter: 1
        -
          expect: Welcome
          send_enter: 1
        -
          expect: Select keyboard layout
          send_enter: 1
        -
          expect: LICENSE AGREEMENT
          send_enter: 1
        -
          expect: Select time zone
          send_enter: 1
        -
          expect: Enter root password
          send: linux
          send_enter: 1
        -
          expect: Confirm root password
          send: linux
          send_enter: 1
        -
          expect: openSUSE Tumbleweed
          send_enter: 1
        -
          expect: Disk Encryption
          send: d
          send_enter: 1
        -
          expect: Disk Encryption
          send: d
          send_enter: 1
        -
          expect: Neither password, TPM2 nor
          send: y
          send_enter: 1
        -
          expect: Do you want to configure network
          send: n
          send_enter: 1
        -
          expect: keys for SSH access?
          send: n
          send_enter: 1
        -
          expect: User Creation
          send: "\t\t"
          send_enter: 1
  -
    use_module: Kanku::Handler::PrepareSSH
  -
    use_module: Kanku::Handler::ExecuteCommandViaSSH
    options:
      commands:
        - echo "Just checking ssh connnection and key deployment"
