Test: add Fedora iot-raw-image test manifests with customizations

Add Fedora iot-raw-image test manifests with supported customizations,
specifically:
 - custom users and groups
 - custom enabled services
 - custom files and directories

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-04-28 14:50:55 +02:00 committed by Achilleas Koutsou
parent bf377d81c1
commit 2a50092920
9 changed files with 47597 additions and 0 deletions

View file

@ -537,6 +537,96 @@
},
"overrides": {}
},
"iot-raw-image-customizations": {
"compose-request": {
"distro": "",
"arch": "",
"image-type": "iot-raw-image",
"repositories": [],
"filename": "image.raw.xz",
"ostree": {
"ref": "test/fedora/iot",
"url": "http://fedora.example.com/repo"
},
"blueprint": {
"customizations": {
"user": [
{
"name": "user2",
"description": "description 2",
"password": "$6$BhyxFBgrEFh0VrPJ$MllG8auiU26x2pmzL4.1maHzPHrA.4gTdCvlATFp8HJU9UPee4zCS9BVl2HOzKaUYD/zEm8r/OF05F2icWB0K/",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC61wMCjOSHwbVb4VfVyl5sn497qW4PsdQ7Ty7aD6wDNZ/QjjULkDV/yW5WjDlDQ7UqFH0Sr7vywjqDizUAqK7zM5FsUKsUXWHWwg/ehKg8j9xKcMv11AkFoUoujtfAujnKODkk58XSA9whPr7qcw3vPrmog680pnMSzf9LC7J6kXfs6lkoKfBh9VnlxusCrw2yg0qI1fHAZBLPx7mW6+me71QZsS6sVz8v8KXyrXsKTdnF50FjzHcK9HXDBtSJS5wA3fkcRYymJe0o6WMWNdgSRVpoSiWaHHmFgdMUJaYoCfhXzyl7LtNb3Q+Sveg+tJK7JaRXBLMUllOlJ6ll5Hod root@localhost",
"home": "/home/home2",
"shell": "/bin/sh",
"groups": [
"group1"
],
"uid": 1020,
"gid": 1050
},
{
"name": "user3",
"uid": 1060,
"gid": 1060
}
],
"group": [
{
"name": "group1",
"gid": 1030
},
{
"name": "group2",
"gid": 1050
},
{
"name": "user3",
"gid": 1060
}
],
"services": {
"enabled": [
"custom.service"
]
},
"directories": [
{
"path": "/etc/systemd/system/custom.service.d"
},
{
"path": "/etc/custom_dir",
"mode": "0770",
"user": 1020,
"group": 1050
}
],
"files": [
{
"path": "/etc/systemd/system/custom.service",
"data": "[Unit]\nDescription=Custom service\n\n[Service]\nExecStart=/usr/bin/false\n\n[Install]\nWantedBy=multi-user.target\n"
},
{
"path": "/etc/systemd/system/custom.service.d/override.conf",
"data": "[Service]\nExecStart=\nExecStart=/usr/bin/cat /etc/custom_file.txt\n"
},
{
"path": "/etc/custom_file.txt",
"data": "image builder is the best",
"mode": "0644",
"user": "root",
"group": "root"
},
{
"path": "/etc/empty_file.txt",
"user": 0,
"group": 0
}
]
}
}
},
"overrides": {}
},
"openstack": {
"boot": {
"type": "openstack"