Skip to content
Snippets Groups Projects
Commit 3ee31fc9 authored by Carla Berenguer's avatar Carla Berenguer
Browse files

Environment config and documentation

parent 02e6c9d7
No related branches found
No related tags found
1 merge request!56Environment config and documentation
......@@ -3,11 +3,14 @@ NAME="odoo-vertical-carsharing"
DISTRIBUTION="ubuntu"
RELEASE="focal"
ARCH="amd64"
HOST="$NAME.local sm.$NAME.local"
HOST="$NAME.local"
PROJECT_NAME="_C_projects_odoo"
PROJECT_PATH="${PWD%/*}/../$PROJECT_NAME"
BASE_PATH="/opt"
DEVENV_USER="odoo"
DEVENV_GROUP="odoo"
# Select the python interpeter python2.7 or python3
PYTHON_INTERPRETER=python3
# Make sure that the directory "../odoo-vertical-sharing" exists
# in the host machine before executing this script.
# Else, please clone it from https://gitlab.com/coopdevs/odoo/odoo-addons/vertical-carsharing
PROJECT_NAME="vertical-carsharing"
PROJECT_PATH="${PWD%/*}/odoo-$PROJECT_NAME/"
BASE_PATH="/opt/odoo_modules"
......@@ -14,6 +14,12 @@ This repository stores hosts informations and related variables for this specifi
ansible-galaxy install -r requirements.yml
```
4. Run `ansible-playbook` command pointing to the `inventory/hosts` file of this repository:
* development local mode
```sh
# install sys admin roles for executing the provision yml
ansible-playbook playbooks/sys_admin.yml -i ../odoo-carsharing-inventory/inventory/hosts --limit=dev -u root
```
5. Run `ansible-playbook` command pointing to the `inventory/hosts` file of this repository:
* development local mode
```sh
# tell it to keep it local with limit=dev
......@@ -24,5 +30,5 @@ This repository stores hosts informations and related variables for this specifi
```sh
ansible-playbook playbooks/provision.yml -i ../odoo-vertical-carsharing-inventory/inventory/hosts --ask-vault-pass --limit=prod
```
5. In development visit http://odoo-carsharing.local:8069
6. In development visit http://odoo-vertical-carsharing.local:8069
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment