55 lines
1.3 KiB
Python
55 lines
1.3 KiB
Python
defaults = {
|
|
'apt': {
|
|
'packages': {
|
|
'php': {},
|
|
'php-curl': {},
|
|
'php-gd': {},
|
|
'php-json': {},
|
|
'php-xml': {},
|
|
'php-mbstring': {},
|
|
'php-cli': {},
|
|
'php-cgi': {},
|
|
'php-zip': {},
|
|
},
|
|
},
|
|
'archive': {
|
|
'paths': {
|
|
'/var/lib/nextcloud': {
|
|
'exclude': [
|
|
'^appdata_',
|
|
'^updater-',
|
|
'^nextcloud\.log',
|
|
'^updater\.log',
|
|
'^[^/]+/cache',
|
|
'^[^/]+/files_versions',
|
|
'^[^/]+/files_trashbin',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
'nextcloud': {
|
|
'data_dir': '/var/lib/nextcloud',
|
|
'admin_user': 'admin',
|
|
'admin_pass': repo.vault.password_for(f'{node.name} nextcloud admin pw'),
|
|
},
|
|
'nginx': {
|
|
'vhosts': {
|
|
'nextcloud': {
|
|
'webroot': '/opt/nextcloud',
|
|
'php': True,
|
|
},
|
|
},
|
|
},
|
|
'postgresql': {
|
|
'roles': {
|
|
'nextcloud': {
|
|
'password': repo.vault.password_for(f'{node.name} nextcloud db pw'),
|
|
},
|
|
},
|
|
'databases': {
|
|
'nextcloud': {
|
|
'owner': 'nextcloud',
|
|
},
|
|
},
|
|
},
|
|
}
|