This commit is contained in:
Christian Fraß 2025-10-08 11:31:00 +02:00
parent 33491acb37
commit 1ebe98f23e
7 changed files with 30 additions and 20 deletions

View file

@ -4,8 +4,7 @@
"properties": {
"hedgedoc_url_base": {
"nullable": false,
"type": "string",
"default": "https://hedgedoc.example.org"
"type": "string"
},
"client_id": {
"nullable": false,
@ -19,6 +18,7 @@
},
"additionalProperties": false,
"required": [
"hedgedoc_url_base",
"client_secret"
]
}

View file

@ -4,8 +4,7 @@
"properties": {
"owncloud_url_base": {
"nullable": false,
"type": "string",
"default": "https://owncloud.example.org"
"type": "string"
},
"web": {
"nullable": true,
@ -89,5 +88,6 @@
},
"additionalProperties": false,
"required": [
"owncloud_url_base"
]
}

View file

@ -1,6 +1,5 @@
{
"cfg_authelia_for_owncloud_defaults": {
"owncloud_url_base": "https://owncloud.example.org",
"web": {
"client_id": "owncloud_web"
},

View file

@ -0,0 +1,19 @@
{
"nullable": false,
"type": "object",
"properties": {
"path": {
"nullable": false,
"type": "string",
"default": "/var/hedgedoc/data.sqlite"
},
"user_name": {
"nullable": false,
"type": "string",
"default": "hedgedoc"
}
},
"additionalProperties": false,
"required": [
]
}

View file

@ -1,4 +1,6 @@
{
"var_sqlite_for_hedgedoc_path": "/var/hedgedoc/data.sqlite",
"var_sqlite_for_hedgedoc_user_name": "hedgedoc"
"cfg_sqlite_for_hedgedoc": {
"path": "/var/hedgedoc/data.sqlite",
"user_name": "hedgedoc"
}
}

View file

@ -4,7 +4,7 @@
"become": true,
"ansible.builtin.file": {
"state": "directory",
"path": "{{var_sqlite_for_hedgedoc_path | dirname}}",
"path": "{{cfg_sqlite_for_hedgedocpath | dirname}}",
"owner": "{{var_hedgedoc_user_name}}"
}
},
@ -13,8 +13,8 @@
"become": true,
"ansible.builtin.file": {
"state": "touch",
"path": "{{var_sqlite_for_hedgedoc_path}}",
"owner": "{{var_sqlite_for_hedgedoc_user_name}}"
"path": "{{cfg_sqlite_for_hedgedocpath}}",
"owner": "{{cfg_sqlite_for_hedgedocuser_name}}"
}
}
]

View file

@ -1,10 +0,0 @@
{
"path": {
"type": "string",
"mandatory": false
},
"user_name": {
"type": "string",
"mandatory": false
}
}