Browse Source

creates config file only if masterpassword is given

master
Tobias Herre 2 years ago
parent
commit
fa1356512f
  1. 13
      wmde-odoo/manifests/init.pp

13
wmde-odoo/manifests/init.pp

@ -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…
Cancel
Save