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