#cloud-config # See the autoinstall documentation at: # https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html autoinstall: version: 1 apt: disable_components: [] fallback: offline-install geoip: true mirror-selection: primary: - uri: http://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 codecs: install: false drivers: install: false kernel: package: linux-generic keyboard: layout: us toggle: null variant: '' locale: en_US.UTF-8 packages: - locales - bash-completion - cloud-guest-utils - sysstat - net-tools - vim - telnet - lrzsz - tcpdump - open-vm-tools - iputils-ping - unzip - iftop timezone: "Asia/Shanghai" network: version: 2 ethernets: interface1: match: name: ens* dhcp4: true interface2: match: name: enp* dhcp4: true oem: install: auto source: id: ubuntu-server-minimal search_drivers: true 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 updates: security user-data: disable_root: false package_update: true package_upgrade: true users: - default swap: filename: /swap.img size: 2G maxsize: 2G runcmd: runcmd: - sysctl -w vm.swappiness=10 - echo 'vm.swappiness=10' >> /etc/sysctl.conf - systemctl disable --now ssh.socket snapd.service - systemctl enable --now ssh.service - [sh, -xc, 'locale-gen en_US.UTF-8'] - [sh, -xc, 'update-locale'] - [sh, -xc, 'echo $(date) '': install complate!'''] - [sh, -xc, 'echo $(hostname -I)']