diff --git a/.devenv b/.devenv index 701c355d1596d022e583349203704e22242d3782..37ad6c347b4af029c7faaaec869810e3e15b7311 100644 --- a/.devenv +++ b/.devenv @@ -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" diff --git a/README.md b/README.md index be7aaa779bf8b08956837bc2882f4882269a6d4b..7c3460079fc2ff35b83904d94583aada4c8125d0 100644 --- a/README.md +++ b/README.md @@ -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