owncloud aktualisieren #1

Closed
fenris wants to merge 44 commits from task-377 into main
7 changed files with 30 additions and 20 deletions
Showing only changes of commit 1ebe98f23e - Show all commits

View file

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

View file

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

View file

@ -1,6 +1,5 @@
{ {
"cfg_authelia_for_owncloud_defaults": { "cfg_authelia_for_owncloud_defaults": {
"owncloud_url_base": "https://owncloud.example.org",
"web": { "web": {
"client_id": "owncloud_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", "cfg_sqlite_for_hedgedoc": {
"var_sqlite_for_hedgedoc_user_name": "hedgedoc" "path": "/var/hedgedoc/data.sqlite",
"user_name": "hedgedoc"
}
} }

View file

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

View file

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