memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / backup / swift.pp
1 #
2 # Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
3 #
4 # Author: Emilien Macchi <emilien.macchi@enovance.com>
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License"); you may
7 # not use this file except in compliance with the License. You may obtain
8 # a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 # License for the specific language governing permissions and limitations
16 # under the License.
17 #
18 # == Class: cinder::backup::swift
19 #
20 # Setup Cinder to backup volumes into Swift
21 #
22 # === Parameters
23 #
24 # [*backup_swift_url*]
25 #   (optional) The URL of the Swift endpoint.
26 #   Should be a valid Swift URL
27 #   Defaults to 'http://localhost:8080/v1/AUTH_'
28 #
29 # [*backup_swift_container*]
30 #   (optional) The default Swift container to use.
31 #   Defaults to 'volumes_backup'
32 #
33 # [*backup_swift_object_size*]
34 #   (optional) The size in bytes of Swift backup objects.
35 #   Defaults to '52428800'
36 #
37 # [*backup_swift_retry_attempts*]
38 #   (optional) The number of retries to make for Swift operations.
39 #   Defaults to '3'
40 #
41 # [*backup_swift_retry_backoff*]
42 #   (optional) The backoff time in seconds between Swift retries.
43 #   Defaults to '2'
44 #
45
46 class cinder::backup::swift (
47   $backup_driver               = 'cinder.backup.drivers.swift',
48   $backup_swift_url            = 'http://localhost:8080/v1/AUTH_',
49   $backup_swift_container      = 'volumes_backup',
50   $backup_swift_object_size    = '52428800',
51   $backup_swift_retry_attempts = '3',
52   $backup_swift_retry_backoff  = '2'
53 ) {
54
55   cinder_config {
56     'DEFAULT/backup_driver':               value => $backup_driver;
57     'DEFAULT/backup_swift_url':            value => $backup_swift_url;
58     'DEFAULT/backup_swift_container':      value => $backup_swift_container;
59     'DEFAULT/backup_swift_object_size':    value => $backup_swift_object_size;
60     'DEFAULT/backup_swift_retry_attempts': value => $backup_swift_retry_attempts;
61     'DEFAULT/backup_swift_retry_backoff':  value => $backup_swift_retry_backoff;
62   }
63
64 }