bundlewrap/nodes/htz-cloud/luther.py

79 lines
2.3 KiB
Python

nodes['htz-cloud.luther'] = {
'bundles': {
'php',
'postgresql',
'zfs',
},
'groups': {
'webserver',
},
'metadata': {
'interfaces': {
'eth0': {
'ips': {
'195.201.136.20',
'2a01:4f8:c2c:fc3b::1/64',
},
'gateway4': '172.31.1.1',
'gateway6': 'fe80::1',
},
},
'apt': {
'packages': {
'php-apcu': {},
'php-uploadprogress': {},
},
},
'cron': {
'luther-ps': vault.decrypt('encrypt$gAAAAABfnUqTXXpUYCA2DxllTKgbKg6YguCBbguJ0rerFGi9UNxEuTO6eqReqraS9FzNmLl81S_20bYwXM5W8pNwV5I5i6BVz1M37TxdsMCAxMG-9G0ZHFXeE4K5a4MWxuyYkrVPtK_hNFOciwxDDwPYT8tH_Jahdqmr8fZcCcsICzsSOxycn89VEm2ODnfH24Azrj6mVq5cPMc_xkdWnn-dSMCvPXpjjg==').format_into('*/10 * * * * www-data /usr/bin/curl -s {}'),
},
'nginx': {
'vhosts': {
'luther-ps': {
'domain': 'luther-ps.kunsmann.eu',
'php': True,
'extras': True,
'website_check_path': '/user/login',
'website_check_string': 'Username',
},
},
},
'php': {
'version': '7.4',
'packages': {
'curl',
'gd',
'json',
'mbstring',
'pgsql',
'xml',
},
},
'postgresql': {
'users': {
'luther-ps': {
# can't use password_for() here, application is unmanaged
'password': vault.decrypt('encrypt$gAAAAABfnSxJtRTeWRTO_ubSqpBbH8L-khPamKtSiUYbuMIoyJnoF_oSfUlMpTpQsmdDh61F3JQEH0xfYOkzkiCGZONRHyYdqkTjWV4Ku1Avdb0SL74VG6NihUJOpZlhOKnuniopCwuW'),
},
},
'databases': {
'luther-ps': {
'owner': 'luther-ps',
},
},
},
'zfs': {
'pools': {
'tank': {
'device': '/dev/sdb',
},
},
},
'vm': {
'cpu': 1,
'ram': 2,
},
},
'os': 'debian',
'os_version': (10,),
}