#cloud-config
# See the autoinstall documentation at:
# https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html
autoinstall:
  updates: security
  version: 1
  apt:
    disable_components: []
    fallback: offline-install
    geoip: true
    mirror-selection:
      primary:
      - uri: https://mirrors.huaweicloud.com/ubuntu/
      - country-mirror
      - arches: &id001
        - amd64
        - i386
        uri: http://archive.ubuntu.com/ubuntu/
      - arches: &id002
        - s390x
        - arm64
        - armhf
        - powerpc
        - ppc64el
        - riscv64
        uri: http://ports.ubuntu.com/ubuntu-ports
    preserve_sources_list: false
    security:
    - arches: *id001
      uri: http://security.ubuntu.com/ubuntu/
    - arches: *id002
      uri: http://ports.ubuntu.com/ubuntu-ports
  packages:
    - language-pack-en
    - open-vm-tools
    - bash-completion
    - vim
    - tree
    - iputils-ping
  codecs:
    install: false
  drivers:
    install: false
  kernel:
    package: linux-generic
  keyboard:
    layout: us
    toggle: null
    variant: ''
  locale: en_US.UTF-8
  network:
    version: 2
    ethernets:
      eth0:
        match:
          name: e*
        dhcp4: true
  oem:
    install: auto
  source:
    id: ubuntu-server-minimal
    search_drivers: false
  ssh:
    allow-pw: true
    authorized-keys:
      - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCmbxjRdcOIRqmpKQoWcp3uz5oKtn28s/tcl2kqjFbyf2DwF3F7vN7SCg3PZRzmpJs27R9iXn7NTdFoXomFLT4+OwNU1xVJJ0TMXVljoRsvWaQA29M/ztaSYCUHdhxr7P79i/jAER9Yio+9gllkIC5CkAALtt/Tj9XvgGSCbd1YQqkEEZ9dqOu707JjfuOZ3dctJSUCrTLFdABNlVwUMhbB+mRX6zGqHmNeJ/dpjD7fCEYrU+kwdbr4WdDKBJtAeqbE2CgpvYdyadbV0d2eiBG5sDuguh9Fp+1F4pvgeRmbInbWTaae1VuYmbinCVqS3N1PIe14ySvhl/a7jxDHuC0nmiBqOnL0pvM4UnognB7bVkE3Ww14ba6VN05Hp1uKFlH1jAhx8EaV0qs/OtjHR2Y/wSR6FctmfbC+6Zn/YoBf5vB+hx5I8RGzp8Qc54T+HagjA2v//7BefT+XtRVMTYBFFJWASGVmrULUFQqhR30/4xlK9HuQi6gIYDuXKyyK2Zs= root@jumpserver
    install-server: true
  storage:
    layout:
      name: direct
      reset-partition: true
      match:
        size: largest
  late-commands:
    - curtin in-target -- sed -i 's/^#*PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
  user-data:
    disable_root: false
    chpasswd:
      list: |
        root:$6$20/PiD2U7URZeRuD$kczbJOSMds5AXoD4AzvPMufSiJROWzEEI4CD85m/BAPTQaVN1aatYYvb7D9lesfFGwNbOLk7ft/e7TWWYTMkZ.
      expire: false

