File: glusterfs.pp

package info (click to toggle)
puppet-module-cinder 27.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,512 kB
  • sloc: ruby: 6,697; python: 33; sh: 10; makefile: 10
file content (53 lines) | stat: -rw-r--r-- 1,795 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# == Class: cinder::backup::glusterfs
#
# Setup Cinder to backup volumes into GlusterFS
#
# === Parameters
#
# [*backup_driver*]
#   (Optional) The backup driver for GlisterFS backend.
#   Defaults to 'cinder.backup.drivers.glusterfs.GlusterfsBackupDriver'.
#
# [*glusterfs_backup_mount_point*]
#   (optional) Base dir container mount point for gluster share.
#   Defaults to $facts['os_service_default']
#
# [*glusterfs_backup_share*]
#   (optional) GlusterFS share in <homename|ipv4addr|ipv6addr>:<gluster_vol_name> format.
#   Eg: 1.2.3.4:backup_vol
#   Defaults to $facts['os_service_default']
#
# === Author(s)
#
# Nate Potter <nathaniel.potter@intel.com>
#
# === Copyright
#
# Copyright (C) 2016 Intel
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
#
class cinder::backup::glusterfs (
  $backup_driver                = 'cinder.backup.drivers.glusterfs.GlusterfsBackupDriver',
  $glusterfs_backup_mount_point = $facts['os_service_default'],
  $glusterfs_backup_share       = $facts['os_service_default'],
) {
  include cinder::deps

  cinder_config {
    'DEFAULT/backup_driver':                value => $backup_driver;
    'DEFAULT/glusterfs_backup_mount_point': value => $glusterfs_backup_mount_point;
    'DEFAULT/glusterfs_backup_share':       value => $glusterfs_backup_share;
  }
}