info_tfgrid/collections/tfgrid4specs/zinit2.md

48 lines
1.2 KiB
Markdown
Raw Normal View History

2024-10-03 14:29:42 +00:00
# Zinit 2
- zinit will register over openrpc with TFRegistrar(s)
- zinit needs support for flists
- zinit needs support for runc
- zinit can modify its zinit unit files for properly signed instructions from TFRegistrar(s)
## multiplatform
- can run in ZOS4
- can run on top of Ubuntu 24.04 and Arch Linux (probably more later)
## config file
zinit2 can be started with following config file, this will tell zinit2 to talk to a registrar and take instructions.
```json
{
"TFRegistrarServers": [
{
"name": "Registrar1",
"url": "http://192.168.1.1:8080",
"pub_key": "abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"
},
{
"name": "Registrar2",
"url": "http://192.168.1.2:8081",
"pub_key": "fedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321"
},
{
"name": "Registrar3",
"url": "http://192.168.1.3:8082",
"pub_key": "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}
],
"min_servers_required_for_signing": 2,
"debug": false
}
```
url can be ipv6 or a name, also https
## implementation
Have a driver which uses zinit, keep zinit small, do in V.