puppet
parent
941b3096e7
commit
19809e08ee
|
|
@ -64,7 +64,7 @@ def main():
|
||||||
'setup_journals',
|
'setup_journals',
|
||||||
'set_currencies',
|
'set_currencies',
|
||||||
'set_decimal_price',
|
'set_decimal_price',
|
||||||
'import_users',
|
|
||||||
'set_translations',
|
'set_translations',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -75,6 +75,7 @@ def main():
|
||||||
'set_dmi_noupdate',
|
'set_dmi_noupdate',
|
||||||
'dmi_confirm_inventory',
|
'dmi_confirm_inventory',
|
||||||
'setup_mail_server',
|
'setup_mail_server',
|
||||||
|
'import_users',
|
||||||
]
|
]
|
||||||
|
|
||||||
if cmd == 'update':
|
if cmd == 'update':
|
||||||
|
|
|
||||||
|
|
@ -558,10 +558,10 @@ class CamadeusFunctions():
|
||||||
|
|
||||||
wizard_id = self._execute('base_import.import', 'create', vals)
|
wizard_id = self._execute('base_import.import', 'create', vals)
|
||||||
if wizard_id:
|
if wizard_id:
|
||||||
try:
|
messages = self._execute('base_import.import', 'do',wizard_id,fields,options)
|
||||||
self._execute('base_import.import', 'do',wizard_id,fields,options)
|
if messages:
|
||||||
except:
|
print messages
|
||||||
pass
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ class odoo {
|
||||||
provider => dpkg,
|
provider => dpkg,
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
source => "/tmp/wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb",
|
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',
|
package {['passlib',
|
||||||
|
|
@ -162,8 +162,8 @@ class odoo {
|
||||||
|
|
||||||
# Postfix setup
|
# Postfix setup
|
||||||
class { '::postfix::server':
|
class { '::postfix::server':
|
||||||
myhostname => 'odoo.allomed.at',
|
myhostname => 'test.camadeus.at',
|
||||||
mydomain => 'allomed.at',
|
mydomain => 'camadeus.at',
|
||||||
mydestination => "\$myhostname, localhost.\$mydomain, localhost, $fqdn",
|
mydestination => "\$myhostname, localhost.\$mydomain, localhost, $fqdn",
|
||||||
inet_interfaces => 'localhost',
|
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