main.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. odoo_install_type: standard # standard, buildout
  2. odoo_version: 9.0
  3. odoo_service: odoo
  4. odoo_user: deploy
  5. odoo_user_passwd: deploy
  6. odoo_user_system: False
  7. odoo_init: True
  8. odoo_init_env: {}
  9. #VAR1: value1
  10. #VAR2: value2
  11. odoo_logdir: "/var/log/{{ odoo_user }}"
  12. odoo_workdir: "/home/{{ odoo_user }}/odoo"
  13. odoo_rootdir: "{{ odoo_install_type == 'buildout' and '/home/'+odoo_user+'/odoo/parts/odoo' or '/home/'+odoo_user+'/odoo/server' }}"
  14. # Project repository to deploy
  15. odoo_repo_type: git # git or hg
  16. odoo_repo_url: "{{ odoo_install_type == 'buildout' and 'https://github.com/osiell/odoo-buildout-example.git' or 'https://github.com/odoo/odoo.git' }}"
  17. odoo_repo_dest: "{{ odoo_install_type == 'buildout' and odoo_workdir or odoo_rootdir }}"
  18. odoo_repo_rev: "{{ odoo_version }}"
  19. odoo_repo_update: False # Update the working copy or not. This option is
  20. # ignored on the first run (a checkout of the working
  21. # copy is always processed on the given revision)
  22. # WARNING: uncommited changes will be discarded!
  23. odoo_repo_depth: 1 # Set to 0 to clone the full history (slower)
  24. # (this option is not supported with hg)
  25. # Third party programs options
  26. odoo_wkhtmltox_version: 0.12.1 # Download URLs available in the
  27. # 'odoo_wkhtmltox_urls' variable
  28. # (see 'vars/main.yml')
  29. odoo_reportlab_font_url: http://www.reportlab.com/ftp/pfbfer.zip
  30. # Tasks related to PostgreSQL
  31. odoo_postgresql_set_user: True
  32. odoo_postgresql_user_role_attr: CREATEDB,NOSUPERADMIN
  33. odoo_postgresql_active_unaccent: True
  34. # Standard installation/configuration options (odoo_install_type == 'standard')
  35. odoo_config_file: "/home/{{ odoo_user }}/{{ odoo_service }}.conf"
  36. odoo_force_config: True
  37. odoo_config_addons_path:
  38. - "/home/{{ odoo_user }}/odoo/server/openerp/addons"
  39. - "/home/{{ odoo_user }}/odoo/server/addons"
  40. odoo_config_admin_passwd: admin
  41. odoo_config_auto_reload: False
  42. odoo_config_csv_internal_sep: ','
  43. odoo_config_data_dir: "/home/{{ odoo_user }}/.local/share/Odoo"
  44. odoo_config_db_host: localhost
  45. odoo_config_db_host_user: postgres
  46. odoo_config_db_maxconn: 64
  47. odoo_config_db_name: odoo
  48. odoo_config_db_passwd: postgres
  49. odoo_config_db_port: 5432
  50. odoo_config_db_template: template0
  51. odoo_config_db_user: postgres
  52. odoo_config_dbfilter: '.*'
  53. odoo_config_debug_mode: False # <= 9.0
  54. odoo_config_pidfile: None
  55. odoo_config_proxy_mode: False
  56. odoo_config_email_from: False
  57. odoo_config_geoip_database: /usr/share/GeoIP/GeoLiteCity.dat
  58. odoo_config_limit_memory_hard: 805306368
  59. odoo_config_limit_memory_soft: 671088640
  60. odoo_config_limit_time_cpu: 60
  61. odoo_config_limit_time_real: 120
  62. odoo_config_limit_time_real_cron: -1 # >= 10.0
  63. odoo_config_list_db: True
  64. odoo_config_log_db: False
  65. odoo_config_log_level: info
  66. odoo_config_logfile: None
  67. odoo_config_logrotate: False
  68. odoo_config_longpolling_port: 8072
  69. odoo_config_osv_memory_age_limit: 1.0
  70. odoo_config_osv_memory_count_limit: False
  71. odoo_config_max_cron_threads: 2
  72. odoo_config_secure_cert_file: server.cert
  73. odoo_config_secure_pkey_file: server.pkey
  74. odoo_config_server_wide_modules: None
  75. odoo_config_smtp_password: False
  76. odoo_config_smtp_port: 25
  77. odoo_config_smtp_server: localhost
  78. odoo_config_smtp_ssl: False
  79. odoo_config_smtp_user: False
  80. odoo_config_syslog: True
  81. odoo_config_timezone: True
  82. odoo_config_translate_modules: "['all']"
  83. odoo_config_unaccent: False
  84. odoo_config_without_demo: False
  85. odoo_config_workers: 0
  86. odoo_config_xmlrpc: True
  87. odoo_config_xmlrpc_interface: ''
  88. odoo_config_xmlrpc_port: 8069
  89. odoo_config_xmlrpcs: True
  90. odoo_config_xmlrpcs_interface: ''
  91. odoo_config_xmlrpcs_port: 8071
  92. # Custom configuration options
  93. odoo_config_custom: {}
  94. #your_option1: value1
  95. #your_option2: value2
  96. # Buildout installation options (odoo_install_type == 'buildout')
  97. odoo_buildout_venv_path: "{{ odoo_workdir }}/sandbox"
  98. odoo_buildout_bootstrap_path: "{{ odoo_workdir }}/bootstrap.py"
  99. odoo_buildout_bin_path: "{{ odoo_workdir }}/bin/buildout"
  100. odoo_buildout_config_path: "{{ odoo_workdir }}/buildout.cfg"
  101. odoo_buildout_odoo_bin_path: "{{ odoo_workdir }}/bin/start_odoo"
  102. # Extra options
  103. odoo_user_sshkeys: "" # ../../path/to/public_keys/*