Ansible configuration management for standing up a complete Oberon stack
See oberon.im for more details about the application.
Oberon runs on top of:
- Ubuntu 16.04
- PostgreSQL
- LetsEncrypt for SSL
- Nginx
Note: Target architecture is Ubuntu 16.04.
Follow the Ansible Installation Guide to install the latest version of Ansible locally.
Clone the project locally:
$ git clone [email protected]:oberon-chat/chat-deploy.git
$ cd chat-deploy
Copy the inventory file and update the values:
$ cp hosts/production.example hosts/production
$ vim hosts/production
Copy group var files:
$ cp group_vars/all.yml.example group_vars/all.yml
$ cp group_vars/client.yml.example group_vars/client.yml
$ cp group_vars/server.yml.example group_vars/server.yml
(Optional) Review and update group var values:
$ vim group_vars/all.yml
$ vim group_vars/client.yml
$ vim group_vars/server.yml
Transfer and run the bootstrap script for each remote host:
$ scp bin/bootstrap example.com:~/
$ ssh example.com "./bootstrap"
Confirm ansible can connect and run on the host:
$ bin/ping
To configure the client and server run:
$ bin/configure
Review and update configuration values:
$ vim configs/client
$ vim configs/server
Build and deploy the server:
$ bin/install