forked from bobslee/ansible-odoo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.yml
178 lines (167 loc) · 8.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
ansible_ssh_pipelining: true
odoo_install_type: standard # standard, buildout
odoo_pip_executable: "pip"
odoo_version: 13.0
odoo_service: odoo
odoo_user: 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: {}
#VAR1: value1
#VAR2: value2
odoo_rootdir: "/home/{{ odoo_user }}" # Recommended: /opt/odoo
# This default is a legacy setting, to maintain backwards
# compatibility, so existing deployments won't break.
odoo_workdir: "{{ odoo_rootdir }}/odoo"
odoo_serverdir: "{{ odoo_install_type == 'buildout' and odoo_rootdir+'/'+odoo_user+'/odoo/parts/odoo' or odoo_rootdir+'/'+odoo_user+'/server' }}"
odoo_logdir: "/var/log/{{ odoo_user }}"
odoo_logfile: "{{ ansible_service_mgr != 'systemd' and ('/'.join([odoo_logdir, odoo_service]) + '.log') or ''}}"
# Project repository to deploy
odoo_repo_type: git # git or hg
odoo_repo_url: "{{ odoo_install_type == 'buildout' and 'https://github.com/osiell/odoo-buildout-example.git' or 'https://github.com/odoo/odoo.git' }}"
odoo_repo_dest: "{{ odoo_install_type == 'buildout' and odoo_workdir or odoo_serverdir }}"
odoo_repo_rev: "{{ odoo_version }}"
odoo_repo_update: True # Update the working copy or not. This option is
# ignored on the first run (a checkout of the working
# copy is always processed on the given revision)
# WARNING: uncommited changes will be discarded!
odoo_repo_depth: 1 # Set to 0 to clone the full history (slower)
# (this option is not supported with hg)
# Enterprise repository to deploy
odoo_enterprise_dir: "{{ odoo_workdir }}/enterprise"
odoo_enterprise_repo_type: git # git or hg
odoo_enterprise_repo_url: False
odoo_enterprise_repo_dest: "{{ odoo_install_type == 'buildout' and odoo_workdir or odoo_enterprise_dir }}"
odoo_enterprise_repo_rev: "{{ odoo_version }}"
odoo_enterprise_repo_update: True # Update the working copy or not. This option is
# ignored on the first run (a checkout of the working
# copy is always processed on the given revision)
# WARNING: uncommited changes will be discarded!
odoo_enterprise_repo_depth: 1 # Set to 0 to clone the full history (slower)
# (this option is not supported with hg)
# Addons repository to deploy
odoo_addons_dir: "{{ odoo_workdir }}/addons"
odoo_addons_repo_type: git # git or hg
odoo_addons_repo_url: False
odoo_addons_repo_dest: "{{ odoo_install_type == 'buildout' and odoo_workdir or odoo_addons_dir }}"
odoo_addons_repo_rev: "{{ odoo_version }}"
odoo_addons_repo_update: True # Update the working copy or not. This option is
# ignored on the first run (a checkout of the working
# copy is always processed on the given revision)
# WARNING: uncommited changes will be discarded!
odoo_addons_repo_depth: 1 # Set to 0 to clone the full history (slower)
# (this option is not supported with hg)
# Third party programs options
odoo_reportlab_font_url: http://www.reportlab.com/ftp/pfbfer.zip
# Tasks related to PostgreSQL
odoo_install_postgresql: True
odoo_postgresql_set_user: True
odoo_postgresql_user_role_attr: CREATEDB,NOSUPERUSER
odoo_postgresql_extensions:
- unaccent
# Standard installation/configuration options (odoo_install_type == 'standard')
odoo_config_file: "/etc/{{ odoo_service }}.conf"
odoo_force_config: True
odoo_config_addons_path:
- "{{ odoo_workdir }}/server/{{ (odoo_version | int) < 10 and 'openerp' or 'odoo' }}/addons"
- "{{ odoo_workdir }}/server/addons"
odoo_config_admin_passwd: admin
odoo_config_auto_reload: False
odoo_config_csv_internal_sep: ','
odoo_config_data_dir: "/home/{{ odoo_user }}/.local/share/Odoo" # Recommended: /srv/odoo
# This default is a legacy setting, to maintain backwards
# compatibility, so existing deployments won't break.
odoo_config_db_host: False
odoo_config_db_host_user: "{{ ansible_user }}"
odoo_config_db_maxconn: 64
odoo_config_db_name: False
odoo_config_db_passwd: False
odoo_config_db_port: False
odoo_config_db_sslmode: prefer # >= 11.0
odoo_config_db_template: template1
odoo_config_db_user: "{{ odoo_user }}"
odoo_config_dbfilter: '.*'
odoo_config_debug_mode: False # <= 9.0
odoo_config_pg_path: None # >= 13.0
odoo_config_pidfile: None
odoo_config_proxy_mode: False
odoo_config_email_from: False
odoo_config_geoip_database: /usr/share/GeoIP/GeoLite2-City.mmdb
odoo_config_http_enable: True # >= 11.0
odoo_config_http_interface: '' # >= 11.0
odoo_config_http_port: 8069 # >= 11.0
odoo_config_limit_memory_hard: 2684354560
odoo_config_limit_memory_soft: 2147483648
odoo_config_limit_time_cpu: 60
odoo_config_limit_time_real: 120
odoo_config_limit_time_real_cron: -1 # >= 10.0
odoo_config_list_db: True
odoo_config_log_db: False
odoo_config_log_level: info
odoo_config_logfile: None
odoo_config_logrotate: False
odoo_config_longpolling_port: 8072
odoo_config_osv_memory_age_limit: 1.0
odoo_config_osv_memory_count_limit: False
odoo_config_max_cron_threads: 2
odoo_config_secure_cert_file: server.cert
odoo_config_secure_pkey_file: server.pkey
odoo_config_server_wide_modules: None
odoo_config_smtp_password: False
odoo_config_smtp_port: 25
odoo_config_smtp_server: localhost
odoo_config_smtp_ssl: False
odoo_config_smtp_user: False
odoo_config_syslog: False
odoo_config_timezone: False
odoo_config_translate_modules: "['all']"
odoo_config_unaccent: False
odoo_config_without_demo: False
odoo_config_workers: 0
odoo_config_xmlrpc: True # <= 10.0
odoo_config_xmlrpc_interface: '' # <= 10.0
odoo_config_xmlrpc_port: 8069 # <= 10.0
odoo_config_xmlrpcs: True # <= 8.0
odoo_config_xmlrpcs_interface: '' # <= 8.0
odoo_config_xmlrpcs_port: 8071 # <= 8.0
# Custom configuration options
odoo_config_custom: {}
#your_option1: value1
#your_option2: value2
# Pip installation options (odoo_install_type == 'pip')
odoo_pip_venv_path: "{{ odoo_workdir }}/sandbox"
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.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 }}"
odoo_buildout_bin_path: "{{ odoo_workdir }}/bin/buildout"
odoo_buildout_config_path: "{{ odoo_workdir }}/buildout.cfg"
odoo_buildout_odoo_bin_path: "{{ odoo_workdir }}/bin/start_odoo"
odoo_buildout_extra_dependencies: [] # Extra Debian packages required
# to run your Buildout recipe
# SSH configuration options
odoo_user_ssh_dir: "/home/{{ odoo_user }}/.ssh"
odoo_user_ssh_key: {}
# This option set only a pair of private key (/!\ without password /!\)
# and public key saved as 'id_rsa{.pub}' (default path) allowing version
# control like Git to clone repositories without configuring the ssh-agent.
# Example:
# odoo_user_ssh_key:
# priv: "path/to/private_key"
# pub: "path/to/public_key.pub"
odoo_user_ssh_known_hosts_file: "{{ odoo_user_ssh_dir }}/known_hosts"
odoo_user_ssh_known_hosts: []
# This option add hosts fingerprint to the 'known_hosts' file. Example:
# odoo_user_ssh_known_hosts:
# - bitbucket.org
#
# FIXME: 'odoo_user_sshkeys' option (and the underlying task) needs refactoring
# to handle the state of SSH public keys (present/absent).
odoo_user_sshkeys: "" # ./path/to/public_keys/*
odoo_user_generate_ssh_key: False