creates config file only if masterpassword is given

This commit is contained in:
Tobias Herre 2021-04-19 13:13:58 +02:00
parent 9437eed92a
commit fa1356512f
1 changed files with 8 additions and 5 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 = "WMDEMPWD" $masterpassword,
) )
inherits odoo::params { inherits odoo::params {
@ -80,10 +80,13 @@ inherits odoo::params {
home => "${odoo_user_homedir}", home => "${odoo_user_homedir}",
require => File["$homedirs"], require => File["$homedirs"],
managehome => true, managehome => true,
} -> }
file {"${odoo_user_homedir}/.openerp_serverrc": if $masterpassword {
ensure => file, file {"${odoo_user_homedir}/.openerp_serverrc":
content => template("odoo/dot_openerp_serverrc.erp"), ensure => file,
content => template("odoo/dot_openerp_serverrc.erp"),
require => User["$odoo_user"],
}
} }