:backup_compression_algorithm: Compression algorithm to use for volume
backups. Supported options are:
None (to disable), zlib and bz2 (default: zlib)
+:backup_swift_ca_cert_file: The location of the CA certificate file to use
+ for swift client requests (default: None)
"""
import hashlib
'progress notifications to Ceilometer when backing '
'up the volume to the Swift backend storage. The '
'default value is True to enable the timer.'),
+ cfg.StrOpt('backup_swift_ca_cert_file',
+ default=None,
+ help='Location of the CA certificate file to use for swift '
+ 'client requests.'),
]
CONF = cfg.CONF
user=CONF.backup_swift_user,
key=CONF.backup_swift_key,
retries=self.swift_attempts,
- starting_backoff=self.swift_backoff)
+ starting_backoff=self.swift_backoff,
+ cacert=CONF.backup_swift_ca_cert_file)
else:
self.conn = swift.Connection(retries=self.swift_attempts,
preauthurl=self.swift_url,
preauthtoken=self.context.auth_token,
- starting_backoff=self.swift_backoff)
+ starting_backoff=self.swift_backoff,
+ cacert=CONF.backup_swift_ca_cert_file)
class SwiftObjectWriter(object):
def __init__(self, container, object_name, conn):