A set of Ansible roles to deploy a RIDING BYTES approved server environment for Odoo.
A RIDING BYTES approved server environment includes the following components:
- Initial server setup
- PostgreSQL
- Odoo 9
- NGINX
- Firewall
Custom Ansible Roles are located in the roles
directory. Each role
contains a README.md
with further documentation.
Install dependencies from Ansible Galaxy:
ansible-galaxy install -r requirements.yml
Create an Ansible Playbook and name it custom.yml
(excluded in .gitignore
):
---
- hosts: all
become: yes
gather_facts: yes
roles:
- role: ridingbytes_odoo
Create an Ansible Inventory file, e.g. name it custom_hosts.cfg
(excluded
in .gitignore
):
[local]
127.0.0.1
Run your custom Ansible Playbook:
ansible-playbook -i custom_hosts.cfg custom.yml
Please refer to the vagrant.yml
Ansible Playbook for a working example.
This repository contains a running Vagrant setup, which creates a full Odoo installation on an Ubuntu Trusty 64-bit server.
Install dependencies from Ansible Galaxy
ansible-galaxy install -r requirements.yml
Start the Vagrant machine:
vagrant up
This will download a Linux machine according to the Vagrantfile
within this
repository.
Note: The server will listen on 192.168.22.10
.
As soon as the machine is running, you can start the provisioning process:
ansible-playbook -i vagrant_hosts.cfg vagrant.yml
Depending on your configuration, you may need to edit the vagrant_hosts.cfg and change the location of the private_key file that is used.
As soon as the Ansible Playbook is done, you can open a browser and navigate to: http://192.168.22.10