From 077611de7061226b60d219f5bebe98a2edc0fa50 Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Thu, 10 Dec 2020 20:27:15 +0100 Subject: [PATCH] Simple postgresql class for local postgresql server --- wmde-odoo/manifests/postgres.pp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 wmde-odoo/manifests/postgres.pp diff --git a/wmde-odoo/manifests/postgres.pp b/wmde-odoo/manifests/postgres.pp new file mode 100644 index 0000000..c509b8f --- /dev/null +++ b/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 + } + + + +}