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",
|
$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,
|
||||||
} ->
|
}
|
||||||
|
if $masterpassword {
|
||||||
file {"${odoo_user_homedir}/.openerp_serverrc":
|
file {"${odoo_user_homedir}/.openerp_serverrc":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
content => template("odoo/dot_openerp_serverrc.erp"),
|
content => template("odoo/dot_openerp_serverrc.erp"),
|
||||||
|
require => User["$odoo_user"],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue