salsa: plan to deploy database with puppet, write out credentials to a .yaml file
[mirror/dsa-puppet.git] / modules / salsa / manifests / database.pp
1 #
2 class salsa::database inherits salsa {
3 # XXX does not work just yet.
4
5 #       include postgresql::server
6 #
7 #       postgresql::server::db { $salsa::db_name:
8 #               user     => $salsa::db_role,
9 #               password => postgresql_password($salsa::db_role, $salsa::db_password),
10 #       }
11 #
12 #       postgresql::server::extension { 'pg_trgm':
13 #               database => $salsa::db_name,
14 #       }
15
16 # so do things by hand for now
17         ensure_packages ( "postgresql", { ensure => 'installed' })
18         # create role, create db owned by role, add extension
19
20         # XXX set up backups
21         file { "/var/lib/postgresql/9.6/main/.nobackup":
22                 content  => ""
23         }
24 }