stages/cloud-init: write only one config file

Instead of supporting writing an arbitrary number of configuration
files, just write one. This makes the stage and its schema clearer
and simpler. If more than one config file is needed, the stage can
be repeated multiple times. It is also more flexible since we can
in the future specify the directory, `/etc` vs `/usr` via a new
top level `directory` key.
This commit is contained in:
Christian Kellner 2021-07-21 11:16:42 +02:00
parent 0becf66454
commit a1703dc298
3 changed files with 33 additions and 48 deletions

View file

@ -506,12 +506,11 @@
{
"name": "org.osbuild.cloud-init",
"options": {
"filename": "00-default_user.cfg",
"config": {
"00-default_user.cfg": {
"system_info": {
"default_user": {
"name": "ec2-user"
}
"system_info": {
"default_user": {
"name": "ec2-user"
}
}
}

View file

@ -32,12 +32,11 @@
{
"name": "org.osbuild.cloud-init",
"options": {
"filename": "00-default_user.cfg",
"config": {
"00-default_user.cfg": {
"system_info": {
"default_user": {
"name": "ec2-user"
}
"system_info": {
"default_user": {
"name": "ec2-user"
}
}
}