creates config file only if masterpassword is given
This commit is contained in:
parent
9437eed92a
commit
fa1356512f
|
@ -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,
|
||||
} ->
|
||||
file {"${odoo_user_homedir}/.openerp_serverrc":
|
||||
ensure => file,
|
||||
content => template("odoo/dot_openerp_serverrc.erp"),
|
||||
}
|
||||
if $masterpassword {
|
||||
file {"${odoo_user_homedir}/.openerp_serverrc":
|
||||
ensure => file,
|
||||
content => template("odoo/dot_openerp_serverrc.erp"),
|
||||
require => User["$odoo_user"],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue