Compare commits
No commits in common. "077611de7061226b60d219f5bebe98a2edc0fa50" and "e7ff039400b8be711965c8a9629b74d9a8204c7a" have entirely different histories.
077611de70
...
e7ff039400
|
@ -129,13 +129,13 @@ inherits odoo::params {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exec {"install_pre":
|
exec {"install_pre":
|
||||||
command => "/bin/ls > /dev/null && $preenv && $pip_cmd install -r $odoo_systemdir/requirements.txt",
|
command => "/bin/ls > /dev/null && $preenv && $pip_cmd install -r $odoo_systemdir/requirements.txt",
|
||||||
require => [
|
require => [
|
||||||
Vcsrepo["$odoo_systemdir"],
|
Vcsrepo["$odoo_systemdir"],
|
||||||
Package[$prepkg],
|
Package[$prepkg],
|
||||||
],
|
]
|
||||||
timeout => 1800,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,13 +14,6 @@ class odoo::params{
|
||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
'FreeBSD':{
|
'FreeBSD':{
|
||||||
$postgrespkgs = "postgresql96-server"
|
|
||||||
$postgresuser = "postgres"
|
|
||||||
$postgresdatadir = "/var/db/postgres/data96"
|
|
||||||
$postgresinitcmd = "/usr/local/bin/initdb -D $postgresdatadir"
|
|
||||||
$postgresusercreate = "/usr/local/bin/createuser -S odoo"
|
|
||||||
$postgresuserexists = "/usr/local/bin/psql -t -c '\du' | cut -d \| -f 1 | grep -qw odoo"
|
|
||||||
|
|
||||||
$prepkg = [
|
$prepkg = [
|
||||||
"cyrus-sasl",
|
"cyrus-sasl",
|
||||||
"textproc/py-libxml2",
|
"textproc/py-libxml2",
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
#
|
|
||||||
# install postgres
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
class odoo::postgres
|
|
||||||
(
|
|
||||||
|
|
||||||
)
|
|
||||||
inherits odoo::params
|
|
||||||
|
|
||||||
{
|
|
||||||
package {$postgrespkgs:
|
|
||||||
ensure => installed
|
|
||||||
} ->
|
|
||||||
exec {$postgresinitcmd:
|
|
||||||
user => $postgresuser,
|
|
||||||
creates => $postgresdatadir
|
|
||||||
} ->
|
|
||||||
service {"postgresql":
|
|
||||||
ensure => running
|
|
||||||
} ->
|
|
||||||
exec {$postgresusercreate:
|
|
||||||
user => $postgresuser,
|
|
||||||
unless => $postgresuserexists
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue