memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / db / postgresql.pp
1 #
2 # Class that configures postgresql for cinder
3 #
4 # Requires the Puppetlabs postgresql module.
5 class cinder::db::postgresql(
6   $password,
7   $dbname = 'cinder',
8   $user   = 'cinder'
9 ) {
10
11   require postgresql::python
12
13   Postgresql::Db[$dbname]    ~> Exec<| title == 'cinder-manage db_sync' |>
14   Package['python-psycopg2'] -> Exec<| title == 'cinder-manage db_sync' |>
15
16   postgresql::db { $dbname:
17     user      =>  $user,
18     password  =>  $password,
19   }
20
21 }