Creates a config file with masterpassword

This commit is contained in:
Tobias Herre 2021-04-18 14:21:18 +02:00
parent 077611de70
commit 9437eed92a
3 changed files with 73 additions and 3 deletions

View File

@ -48,9 +48,9 @@
class odoo( class odoo(
$version = "wmde8.0", $version = "wmde8.0",
$source = 'https://srcsrv.wikimedia.de/WMDE/odoo.git' $source = 'https://srcsrv.wikimedia.de/WMDE/odoo.git',
# $source = 'https://www.github.com/odoo/odoo.git' # $source = 'https://www.github.com/odoo/odoo.git'
$masterpassword = "WMDEMPWD"
) )
inherits odoo::params { inherits odoo::params {
@ -74,14 +74,20 @@ inherits odoo::params {
file {"$homedirs": file {"$homedirs":
ensure => 'directory' ensure => 'directory'
} }
user {"$odoo_user": user {"$odoo_user":
ensure => present, ensure => present,
home => "${odoo_user_homedir}", home => "${odoo_user_homedir}",
require => File["$homedirs"], require => File["$homedirs"],
managehome => true, managehome => true,
} ->
file {"${odoo_user_homedir}/.openerp_serverrc":
ensure => file,
content => template("odoo/dot_openerp_serverrc.erp"),
} }
package {$prepkg: package {$prepkg:
ensure => "installed" ensure => "installed"
} }

View File

@ -25,7 +25,7 @@ class odoo::params{
"cyrus-sasl", "cyrus-sasl",
"textproc/py-libxml2", "textproc/py-libxml2",
"jpeg", "jpeg",
"python", "python27",
"devel/py-pip", "devel/py-pip",
"git", "git",
"postgresql96-client", "postgresql96-client",

View File

@ -0,0 +1,64 @@
[options]
addons_path = /usr/home/odoo/system/openerp/addons,/usr/home/odoo/system/addons
admin_passwd = <%= @masterpassword %>
auto_reload = False
csv_internal_sep = ,
data_dir = /usr/home/odoo/.local/share/Odoo
db_host = False
db_maxconn = 64
db_name = False
db_password = False
db_port = False
db_template = template1
db_user = odoo
dbfilter = .*
debug_mode = False
demo = {}
email_from = False
geoip_database = /usr/share/GeoIP/GeoLiteCity.dat
import_partial =
limit_memory_hard = 2684354560
limit_memory_soft = 2147483648
limit_request = 8192
limit_time_cpu = 60
limit_time_real = 120
list_db = True
log_db = False
log_db_level = warning
log_handler = :INFO
log_level = info
logfile = False
logrotate = False
longpolling_port = 8072
max_cron_threads = 2
osv_memory_age_limit = 1.0
osv_memory_count_limit = False
pg_path = None
pidfile = False
proxy_mode = False
reportgz = False
secure_cert_file = server.cert
secure_pkey_file = server.pkey
server_wide_modules = web,web_kanban
smtp_password = False
smtp_port = 25
smtp_server = localhost
smtp_ssl = False
smtp_user = False
syslog = False
test_commit = False
test_enable = False
test_file = False
test_report_directory = False
timezone = False
translate_modules = ['all']
unaccent = False
without_demo = False
workers = 0
xmlrpc = True
xmlrpc_interface =
xmlrpc_port = 8069
xmlrpcs = True
xmlrpcs_interface =
xmlrpcs_port = 8071