Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tangledhelix/ansible-tealdb
Ansible playbook to install a tealdb server
https://github.com/tangledhelix/ansible-tealdb
Last synced: about 1 month ago
JSON representation
Ansible playbook to install a tealdb server
- Host: GitHub
- URL: https://github.com/tangledhelix/ansible-tealdb
- Owner: tangledhelix
- Created: 2022-11-06T21:30:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-23T01:22:29.000Z (about 1 year ago)
- Last Synced: 2023-11-23T06:26:18.670Z (about 1 year ago)
- Language: Jinja
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Purpose
This is a playbook to set up a tealdb server.
Based on https://github.com/tangledhelix/tealdb/
## Assumptions
- Ubuntu 22.04 or later.
- This was built on Digital Ocean - assumes root login by default.## Secrets
Some stuff is in vars/secrets.yml. See vars/secrets.yml.example.
## Reference
Postgres bits taken from https://stribny.name/blog/ansible-postgresql/
## Migrating servers
### On old host
systemctl stop nginx.service
systemctl stop uwsgi.service
su - postgresl
pg_dump tealdb > tealdb.dump.sql(copy sql file to new server)
### On new host
systemctl stop nginx.service
systemctl stop uwsgi.service
su - postgresl
dropdb tealdb
createdb tealdb
psql -d tealdb < tealdb.dump.sql(run ansible playbook)