43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #cloud-config
 | |
| autoinstall:
 | |
|   version: 1
 | |
|   apt:
 | |
|     geoip: true
 | |
|     preserve_sources_list: false
 | |
|     primary:
 | |
|       - arches: [amd64, i386]
 | |
|         uri: http://archive.ubuntu.com/ubuntu
 | |
|       - arches: [default]
 | |
|         uri: http://ports.ubuntu.com/ubuntu-ports
 | |
|   early-commands:
 | |
|     - sudo systemctl stop ssh
 | |
|   locale: en_US
 | |
|   keyboard:
 | |
|     layout: us
 | |
|   network:
 | |
|     network:
 | |
|       version: 2
 | |
|       ethernets:
 | |
|         ens192:
 | |
|           dhcp4: true
 | |
|           dhcp-identifier: mac
 | |
|   storage:
 | |
|     layout:
 | |
|       name: direct
 | |
|   identity:
 | |
|     hostname: ubuntu-server
 | |
|     username: ubuntu
 | |
|     password: $6$rounds=4096$ZKfzRoaQOtc$M.fhOsI0gbLnJcCONXz/YkPfSoefP4i2/PQgzi2xHEi2x9CUhush.3VmYKL0XVr5JhoYvnLfFwqwR/1YYEqZy/
 | |
|   ssh:
 | |
|     install-server: true
 | |
|     allow-pw: true
 | |
|   packages:
 | |
|     - openssh-server
 | |
|     - open-vm-tools
 | |
|     - cloud-init
 | |
|   user-data:
 | |
|     disable_root: false
 | |
|   late-commands:
 | |
|     - echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu
 | |
|     - curtin in-target --target=/target -- chmod 440 /etc/sudoers.d/ubuntu
 |