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