2 class salsa::database inherits salsa {
3 # XXX does not work just yet.
5 # include postgresql::server
7 # postgresql::server::db { $salsa::db_name:
8 # user => $salsa::db_role,
9 # password => postgresql_password($salsa::db_role, $salsa::db_password),
12 # postgresql::server::extension { 'pg_trgm':
13 # database => $salsa::db_name,
16 # so do things by hand for now
17 ensure_packages ( "postgresql", { ensure => 'installed' })
18 # create role, create db owned by role, add extension
21 file { "/var/lib/postgresql/9.6/main/.nobackup":