bundlewrap/nodes/htz-cloud/luther.py

80 lines
2.3 KiB
Python
Raw Normal View History

2020-10-31 09:19:03 +00:00
nodes['htz-cloud.luther'] = {
'bundles': {
'php',
2020-10-31 09:19:03 +00:00
'postgresql',
'zfs',
},
'groups': {
'webserver',
},
'metadata': {
'interfaces': {
'eth0': {
'ipv4': {
'195.201.136.20',
},
'ipv6': {
'2a01:4f8:c2c:fc3b::1',
},
'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 {}'),
},
2020-10-31 09:19:03 +00:00
'nginx': {
'vhosts': {
'luther-ps': {
'domain': 'luther-ps.kunsmann.eu',
2020-10-31 09:19:03 +00:00
'php': True,
'extras': True,
2020-10-31 09:19:03 +00:00
},
},
},
'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',
},
},
},
2020-10-31 09:19:03 +00:00
'zfs': {
'pools': {
'tank': {
'device': '/dev/sdb',
},
},
},
'vm': {
'cpu': 1,
'ram': 2,
},
},
'os': 'debian',
'os_version': (10,),
}