31 lines
361 B
Puppet
31 lines
361 B
Puppet
|
#
|
||
|
# 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
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|