Simple postgresql class for local postgresql server

This commit is contained in:
Tobias Herre 2020-12-10 20:27:15 +01:00
parent a320df4b1b
commit 077611de70
1 changed files with 30 additions and 0 deletions

View File

@ -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
}
}