2 # Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
4 # Author: Emilien Macchi <emilien.macchi@enovance.com>
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
10 # http://www.apache.org/licenses/LICENSE-2.0
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
18 # == Class: cinder::backup::swift
20 # Setup Cinder to backup volumes into Swift
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_'
29 # [*backup_swift_container*]
30 # (optional) The default Swift container to use.
31 # Defaults to 'volumes_backup'
33 # [*backup_swift_object_size*]
34 # (optional) The size in bytes of Swift backup objects.
35 # Defaults to '52428800'
37 # [*backup_swift_retry_attempts*]
38 # (optional) The number of retries to make for Swift operations.
41 # [*backup_swift_retry_backoff*]
42 # (optional) The backoff time in seconds between Swift retries.
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'
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;