Browse Source

Simple postgresql class for local postgresql server

master
Tobias Herre 2 years ago
parent
commit
077611de70
  1. 30
      wmde-odoo/manifests/postgres.pp

30
wmde-odoo/manifests/postgres.pp

@ -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:
user => $postgresuser,
unless => $postgresuserexists
}
}
Loading…
Cancel
Save