[int]
This commit is contained in:
parent
33491acb37
commit
1ebe98f23e
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"cfg_authelia_for_owncloud_defaults": {
|
||||
"owncloud_url_base": "https://owncloud.example.org",
|
||||
"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",
|
||||
"var_sqlite_for_hedgedoc_user_name": "hedgedoc"
|
||||
"cfg_sqlite_for_hedgedoc": {
|
||||
"path": "/var/hedgedoc/data.sqlite",
|
||||
"user_name": "hedgedoc"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"path": {
|
||||
"type": "string",
|
||||
"mandatory": false
|
||||
},
|
||||
"user_name": {
|
||||
"type": "string",
|
||||
"mandatory": false
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue