Simple postgresql class for local postgresql server
This commit is contained in:
parent
a320df4b1b
commit
077611de70
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue