bundlewrap/nodes/htz-cloud/luther.py

109 lines
3.2 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': {
2020-11-21 09:55:09 +00:00
'debian-buster',
2020-10-31 09:19:03 +00:00
'webserver',
},
'metadata': {
'interfaces': {
'eth0': {
2020-11-09 14:16:29 +00:00
'ips': {
2020-10-31 09:19:03 +00:00
'195.201.136.20',
2020-11-09 14:16:29 +00:00
'2a01:4f8:c2c:fc3b::1/64',
2020-10-31 09:19:03 +00:00
},
'gateway4': '172.31.1.1',
'gateway6': 'fe80::1',
},
'ens10': {
'ips': {
'172.19.137.4/32',
},
'routes': {
# VPN
'172.19.136.0/22': {
'via': '172.19.137.1',
},
},
},
2020-10-31 09:19:03 +00:00
},
'apt': {
'packages': {
'php-apcu': {},
'php-uploadprogress': {},
},
},
'cron': {
'jobs': {
'luther-ps': vault.decrypt('encrypt$gAAAAABfnUqTXXpUYCA2DxllTKgbKg6YguCBbguJ0rerFGi9UNxEuTO6eqReqraS9FzNmLl81S_20bYwXM5W8pNwV5I5i6BVz1M37TxdsMCAxMG-9G0ZHFXeE4K5a4MWxuyYkrVPtK_hNFOciwxDDwPYT8tH_Jahdqmr8fZcCcsICzsSOxycn89VEm2ODnfH24Azrj6mVq5cPMc_xkdWnn-dSMCvPXpjjg==').format_into('*/10 * * * * www-data /usr/bin/curl -s {}'),
},
},
2020-11-30 05:54:50 +00:00
'icinga_options': {
'pretty_name': 'Lutherkirchengemeinde Pirmasens',
2020-11-30 05:54:50 +00:00
'vars.notification.sms': False,
},
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,
'website_check_path': '/user/login',
'website_check_string': 'Username',
2020-10-31 09:19:03 +00:00
},
},
},
'php': {
'version': '7.4',
'packages': {
'curl',
'gd',
'json',
'mbstring',
'pgsql',
'xml',
},
},
'postgresql': {
'version': '11',
'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': {
2021-08-17 16:09:51 +00:00
'tank': {
'when_creating': {
'config': [{
'devices': {'/dev/sdb'},
}],
},
},
2020-10-31 09:19:03 +00:00
},
'datasets': {
'tank/luther-website': {
'mountpoint': '/var/www/luther-ps',
'needed_by': {
'directory:/var/www/luther-ps',
},
},
},
2020-10-31 09:19:03 +00:00
},
'vm': {
'cpu': 1,
'ram': 2,
},
},
}