From a6547d9b5637c76f8014fda29037525cc3515c8b Mon Sep 17 00:00:00 2001 From: sebalix Date: Thu, 19 Apr 2018 15:20:48 +0200 Subject: [PATCH 1/3] [IMP] Set '*' as the default password for the Odoo user (to respect convention) + New options 'odoo_user_update_password' and 'odoo_user_shell' (allowing to set /bin/false and thus disable authentication) --- defaults/main.yml | 4 +++- tasks/install.yml | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 1bda2b9..6e9bcc8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,7 +4,9 @@ odoo_install_type: standard # standard, buildout odoo_version: 11.0 odoo_service: odoo odoo_user: odoo -odoo_user_passwd: odoo +odoo_user_passwd: "*" # http://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module +odoo_user_update_password: always +odoo_user_shell: /bin/bash odoo_user_system: False odoo_init: True odoo_init_env: {} diff --git a/tasks/install.yml b/tasks/install.yml index 9776fa3..c97796f 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -10,9 +10,12 @@ - odoo_required_tools - name: Add Odoo system user - user: name={{ odoo_user }} shell=/bin/bash - password={{ odoo_user_passwd }} update_password=on_create - system={{ odoo_user_system }} + user: + name: "{{ odoo_user }}" + shell: "{{ odoo_user_shell }}" + password: "{{ odoo_user_passwd }}" + update_password: "{{ odoo_user_update_password }}" + system: "{{ odoo_user_system }}" tags: - odoo_user From 73ac5d541fa502a3baba25fb404d12e188003709 Mon Sep 17 00:00:00 2001 From: sebalix Date: Wed, 2 May 2018 11:05:26 +0200 Subject: [PATCH 2/3] [FIX] odoo_buildout_version: 2.10.0 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6e9bcc8..9496fbb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -111,7 +111,7 @@ odoo_pip_requirements_url: "file:///home/{{ odoo_user }}/requirements.txt" odoo_pip_odoo_bin_path: "{{ odoo_pip_venv_path }}/bin/{{ (odoo_version | int) < 10 and 'odoo.py' or 'odoo' }}" # Buildout installation options (odoo_install_type == 'buildout') -odoo_buildout_version: 2.9.5 +odoo_buildout_version: 2.10.0 odoo_buildout_venv_path: "{{ odoo_workdir }}/sandbox" odoo_buildout_bootstrap_path: "{{ odoo_workdir }}/bootstrap.py" odoo_buildout_bootstrap_cmd: "{{ odoo_buildout_venv_path }}/bin/python {{ odoo_buildout_bootstrap_path }} -c {{ odoo_buildout_config_path }} --buildout-version {{ odoo_buildout_version }}" From 213b8054b54cb9b53298b1ce50ee00085e37e6cf Mon Sep 17 00:00:00 2001 From: sebalix Date: Wed, 2 May 2018 11:36:56 +0200 Subject: [PATCH 3/3] [FIX] odoo_pip_dependencies: setuptools>=38.2.3 for Debian 8 (jessie) and Ubuntu 14.04 (trusty). These systems which provides an old setuptools package by default. --- vars/Debian-8_Odoo-10.yml | 1 + vars/Debian-8_Odoo-8.yml | 1 + vars/Debian-8_Odoo-9.yml | 1 + vars/Ubuntu-14_Odoo-10.yml | 1 + vars/Ubuntu-14_Odoo-8.yml | 1 + vars/Ubuntu-14_Odoo-9.yml | 1 + 6 files changed, 6 insertions(+) diff --git a/vars/Debian-8_Odoo-10.yml b/vars/Debian-8_Odoo-10.yml index 49f72af..b189822 100644 --- a/vars/Debian-8_Odoo-10.yml +++ b/vars/Debian-8_Odoo-10.yml @@ -55,6 +55,7 @@ odoo_npm_packages: odoo_pip_dependencies: - pip>=9.0.1 - wrapt + - setuptools>=38.2.3 - odoo-autodiscover==2.0.0 - setuptools-odoo==2.0.2.post1 diff --git a/vars/Debian-8_Odoo-8.yml b/vars/Debian-8_Odoo-8.yml index 4403033..19c0c68 100644 --- a/vars/Debian-8_Odoo-8.yml +++ b/vars/Debian-8_Odoo-8.yml @@ -42,6 +42,7 @@ odoo_npm_packages: [] odoo_pip_dependencies: - pip>=9.0.1 - wrapt + - setuptools>=38.2.3 - odoo-autodiscover==2.0.0 - setuptools-odoo==2.0.2.post1 diff --git a/vars/Debian-8_Odoo-9.yml b/vars/Debian-8_Odoo-9.yml index fc79afa..5bc8bd6 100644 --- a/vars/Debian-8_Odoo-9.yml +++ b/vars/Debian-8_Odoo-9.yml @@ -50,6 +50,7 @@ odoo_npm_packages: odoo_pip_dependencies: - pip>=9.0.1 - wrapt + - setuptools>=38.2.3 - odoo-autodiscover==2.0.0 - setuptools-odoo==2.0.2.post1 diff --git a/vars/Ubuntu-14_Odoo-10.yml b/vars/Ubuntu-14_Odoo-10.yml index b05625b..bd817fa 100644 --- a/vars/Ubuntu-14_Odoo-10.yml +++ b/vars/Ubuntu-14_Odoo-10.yml @@ -55,6 +55,7 @@ odoo_npm_packages: odoo_pip_dependencies: - pip>=9.0.1 - wrapt + - setuptools>=38.2.3 - odoo-autodiscover==2.0.0 - setuptools-odoo==2.0.2.post1 diff --git a/vars/Ubuntu-14_Odoo-8.yml b/vars/Ubuntu-14_Odoo-8.yml index bd91375..7061afc 100644 --- a/vars/Ubuntu-14_Odoo-8.yml +++ b/vars/Ubuntu-14_Odoo-8.yml @@ -40,6 +40,7 @@ odoo_debian_packages: odoo_pip_dependencies: - pip>=9.0.1 - wrapt + - setuptools>=38.2.3 - odoo-autodiscover==2.0.0 - setuptools-odoo==2.0.2.post1 diff --git a/vars/Ubuntu-14_Odoo-9.yml b/vars/Ubuntu-14_Odoo-9.yml index bb20f0b..fdb18e1 100644 --- a/vars/Ubuntu-14_Odoo-9.yml +++ b/vars/Ubuntu-14_Odoo-9.yml @@ -50,6 +50,7 @@ odoo_npm_packages: odoo_pip_dependencies: - pip>=9.0.1 - wrapt + - setuptools>=38.2.3 - odoo-autodiscover==2.0.0 - setuptools-odoo==2.0.2.post1