@ -0,0 +1,30 @@
#
# install postgres
class odoo::postgres
(
)
inherits odoo::params
{
package {$postgrespkgs:
ensure => installed
} ->
exec {$postgresinitcmd:
user => $postgresuser,
creates => $postgresdatadir
service {"postgresql":
ensure => running
exec {$postgresusercreate:
unless => $postgresuserexists
}