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",
$source = 'https://srcsrv.wikimedia.de/WMDE/odoo.git',
# $source = 'https://www.github.com/odoo/odoo.git'
$masterpassword = "WMDEMPWD"
$masterpassword,
)
inherits odoo::params {
@ -80,10 +80,13 @@ inherits odoo::params {
home => "${odoo_user_homedir}",
require => File["$homedirs"],
managehome => true,
} ->
}
if $masterpassword {
file {"${odoo_user_homedir}/.openerp_serverrc":
ensure => file,
content => template("odoo/dot_openerp_serverrc.erp"),
require => User["$odoo_user"],
}
}