bundlewrap/nodes/htz-cloud/pleroma.py

86 lines
2.6 KiB
Python
Raw Normal View History

2021-02-20 15:53:59 +00:00
nodes['htz-cloud.pleroma'] = {
'bundles': {
'pleroma',
'postgresql',
'zfs',
},
'groups': {
'debian-buster',
'webserver',
},
'metadata': {
'interfaces': {
'eth0': {
'ips': {
'159.69.11.231',
'2a01:4f8:c2c:c410::1/64',
},
'gateway4': '172.31.1.1',
'gateway6': 'fe80::1',
},
'ens10': {
'ips': {
'172.19.137.5/32',
},
'routes': {
# VPN
'172.19.136.0/22': {
'via': '172.19.137.1',
},
},
},
2021-02-20 15:53:59 +00:00
},
'icinga_options': {
'period': 'daytime',
'pretty_name': 'cybert-media.net',
},
'cron': {
'jobs': {
'auto-authorize-sm-users': '* * * * * root echo "UPDATE users SET approval_pending=false WHERE email LIKE \'\\%@seibert-media.net\' AND approval_pending=true;" | psql pleroma >/dev/null',
},
},
2021-02-20 15:53:59 +00:00
'nginx': {
'vhosts': {
'pleroma': {
'max_body_size': '16M',
2021-02-20 18:37:33 +00:00
'extras': True,
2021-02-20 15:53:59 +00:00
},
'pleroma-www-redir': {
'domain': 'www.cybert-media.net',
'locations': {
'/': {
'redirect': 'https://cybert-media.net$request_uri',
},
},
},
2021-02-20 15:53:59 +00:00
},
},
'pleroma': {
'version': '2.2.2',
'url': 'cybert-media.net',
2021-02-20 18:37:33 +00:00
'secret_key': vault.decrypt('encrypt$gAAAAABgMVXXclfxVY022fM0Fdf94Oh3sxVlK0lYyBO_CsQFEbZcMua3w1oJY8_9d1JcrCJSSeBRTDnt-ZkRCQ6xKoALo8Rl7s9DPxa7J0vHdkggeZ3IHaOyXBcBPdx8vILyKDLHRXacaynOUBOjy6RIl6Qf2wH1ASbphCcjD-Njricg4PG6Rcixm87fF60rLBjAAkRoz5ZQnXlut1rhjLj-z-7UpA68fkeyPVJXbroWBJdmvCUt92dwjuGARsku2XI22mVvjtJJ'),
2021-02-20 15:53:59 +00:00
},
'postfix': {
'myhostname': 'cybert-media.net',
},
'postgresql': {
'version': '11',
},
2021-02-20 15:53:59 +00:00
'vm': {
'cpu': 1,
'ram': 2,
},
'zfs': {
'pools': {
2021-08-17 16:09:51 +00:00
'tank': {
'when_creating': {
'config': [{
'devices': {'/dev/sdb'},
}],
},
},
2021-02-20 15:53:59 +00:00
},
},
},
}