Make masterpassword not mandatory

This commit is contained in:
Tobias Herre 2021-11-22 14:43:39 +01:00
parent fa1356512f
commit 10dd32431a
1 changed files with 12 additions and 1 deletions

View File

@ -50,7 +50,7 @@ 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, $masterpassword=undef,
) )
inherits odoo::params { inherits odoo::params {
@ -86,8 +86,19 @@ inherits odoo::params {
ensure => file, ensure => file,
content => template("odoo/dot_openerp_serverrc.erp"), content => template("odoo/dot_openerp_serverrc.erp"),
require => User["$odoo_user"], require => User["$odoo_user"],
owner => "$odoo_user",
mode => "600",
} }
} }
else {
file {"${odoo_user_homedir}/.openerp_serverrc":
ensure => file,
require => User["$odoo_user"],
owner => "$odoo_user",
mode => "600",
}
}