mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
test_data: Simplify default configuration for local testing
Script `create-cloud-init.sh" uses the same cloud init data as the the CI but this means it is somewhat overloaded with unhelpful network configuration entries and scripts that are only needed for the CI. For local testing data kept in test_data/cloud-init/ubuntu/local folder. This contains minimum configuration data for user to test it locally. Script assigns default IP address using "network-config" details with --net "tap=" option. The default network interface will be "ens4". Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@intel.com>
This commit is contained in:
committed by
Bo Chen
parent
0712027eb1
commit
e8d6c9ecb0
2
test_data/cloud-init/ubuntu/local/meta-data
Normal file
2
test_data/cloud-init/ubuntu/local/meta-data
Normal file
@@ -0,0 +1,2 @@
|
||||
instance-id: cloud
|
||||
local-hostname: cloud
|
||||
7
test_data/cloud-init/ubuntu/local/network-config
Normal file
7
test_data/cloud-init/ubuntu/local/network-config
Normal file
@@ -0,0 +1,7 @@
|
||||
version: 2
|
||||
ethernets:
|
||||
ens4:
|
||||
match:
|
||||
macaddress: 12:34:56:78:90:ab
|
||||
addresses: [192.168.249.2/24]
|
||||
gateway4: 192.168.249.1
|
||||
10
test_data/cloud-init/ubuntu/local/user-data
Normal file
10
test_data/cloud-init/ubuntu/local/user-data
Normal file
@@ -0,0 +1,10 @@
|
||||
#cloud-config
|
||||
users:
|
||||
- name: cloud
|
||||
passwd: $6$7125787751a8d18a$sHwGySomUA1PawiNFWVCKYQN.Ec.Wzz0JtPPL1MvzFrkwmop2dq7.4CYf03A5oemPQ4pOFCCrtCelvFBEle/K.
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
lock_passwd: False
|
||||
inactive: False
|
||||
shell: /bin/bash
|
||||
|
||||
ssh_pwauth: True
|
||||
Reference in New Issue
Block a user