puppet
parent
941b3096e7
commit
19809e08ee
|
|
@ -64,7 +64,7 @@ def main():
|
|||
'setup_journals',
|
||||
'set_currencies',
|
||||
'set_decimal_price',
|
||||
'import_users',
|
||||
|
||||
'set_translations',
|
||||
]
|
||||
|
||||
|
|
@ -75,6 +75,7 @@ def main():
|
|||
'set_dmi_noupdate',
|
||||
'dmi_confirm_inventory',
|
||||
'setup_mail_server',
|
||||
'import_users',
|
||||
]
|
||||
|
||||
if cmd == 'update':
|
||||
|
|
|
|||
|
|
@ -558,10 +558,10 @@ class CamadeusFunctions():
|
|||
|
||||
wizard_id = self._execute('base_import.import', 'create', vals)
|
||||
if wizard_id:
|
||||
try:
|
||||
self._execute('base_import.import', 'do',wizard_id,fields,options)
|
||||
except:
|
||||
pass
|
||||
messages = self._execute('base_import.import', 'do',wizard_id,fields,options)
|
||||
if messages:
|
||||
print messages
|
||||
return False
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class odoo {
|
|||
provider => dpkg,
|
||||
ensure => installed,
|
||||
source => "/tmp/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb",
|
||||
require => File['wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb'],
|
||||
require => [File['wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb'],Package['xfonts-base']],
|
||||
}
|
||||
|
||||
package {['passlib',
|
||||
|
|
@ -162,8 +162,8 @@ class odoo {
|
|||
|
||||
# Postfix setup
|
||||
class { '::postfix::server':
|
||||
myhostname => 'odoo.allomed.at',
|
||||
mydomain => 'allomed.at',
|
||||
myhostname => 'test.camadeus.at',
|
||||
mydomain => 'camadeus.at',
|
||||
mydestination => "\$myhostname, localhost.\$mydomain, localhost, $fqdn",
|
||||
inet_interfaces => 'localhost',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
# info: restart Odoo server
|
||||
# author: Camadeus GmbH
|
||||
|
||||
USER=x
|
||||
HOST=x
|
||||
INSTANCE=x
|
||||
|
||||
ssh ${USER}@${HOST} "sudo service odoo-server-${INSTANCE} restart"
|
||||
Loading…
Reference in New Issue