owncloud aktualisieren #1
|
|
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
19
roles/sqlite-for-hedgedoc/cfg.schema.json
Normal file
19
roles/sqlite-for-hedgedoc/cfg.schema.json
Normal 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": [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"path": {
|
|
||||||
"type": "string",
|
|
||||||
"mandatory": false
|
|
||||||
},
|
|
||||||
"user_name": {
|
|
||||||
"type": "string",
|
|
||||||
"mandatory": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue