try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / quota.pp
1 # == Class: cinder::quota
2 #
3 # Setup and configure Cinder quotas.
4 #
5 # === Parameters
6 #
7 # [*quota_volumes*]
8 #   (optional) Number of volumes allowed per project. Defaults to 10.
9 #
10 # [*quota_snapshots*]
11 #   (optional) Number of volume snapshots allowed per project. Defaults to 10.
12 #
13 # [*quota_gigabytes*]
14 #   (optional) Number of volume gigabytes (snapshots are also included)
15 #   allowed per project. Defaults to 1000.
16 #
17 # [*quota_driver*]
18 #   (optional) Default driver to use for quota checks.
19 #   Defaults to 'cinder.quota.DbQuotaDriver'.
20 #
21 class cinder::quota (
22   $quota_volumes = 10,
23   $quota_snapshots = 10,
24   $quota_gigabytes = 1000,
25   $quota_driver = 'cinder.quota.DbQuotaDriver'
26 ) {
27
28   cinder_config {
29     'DEFAULT/quota_volumes':   value => $quota_volumes;
30     'DEFAULT/quota_snapshots': value => $quota_snapshots;
31     'DEFAULT/quota_gigabytes': value => $quota_gigabytes;
32     'DEFAULT/quota_driver':    value => $quota_driver;
33   }
34 }