File: base.pp

package info (click to toggle)
puppet-module-ceph 3.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 884 kB
  • sloc: ruby: 3,177; python: 36; makefile: 10; sh: 10
file content (56 lines) | stat: -rw-r--r-- 2,742 bytes parent folder | download | duplicates (3)
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
54
55
56
#
#   Copyright (C) 2014 Nine Internet Solutions AG
#
#   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.
#
# Author: David Gurtner <aldavud@crimson.ch>
#
# == Class: ceph::profile::base
#
# Base profile to install ceph and configure /etc/ceph/ceph.conf
#
class ceph::profile::base {
  include ceph::profile::params

  if ( $ceph::profile::params::manage_repo ) {
    Class['ceph::repo'] -> Class['ceph']

    class { 'ceph::repo':
      release => $ceph::profile::params::release,
    }
  }

  class { 'ceph':
    fsid                          => $ceph::profile::params::fsid,
    authentication_type           => $ceph::profile::params::authentication_type,
    osd_journal_size              => $ceph::profile::params::osd_journal_size,
    osd_max_object_name_len       => $ceph::profile::params::osd_max_object_name_len,
    osd_max_object_namespace_len  => $ceph::profile::params::osd_max_object_namespace_len,
    osd_pool_default_pg_num       => $ceph::profile::params::osd_pool_default_pg_num,
    osd_pool_default_pgp_num      => $ceph::profile::params::osd_pool_default_pgp_num,
    osd_pool_default_size         => $ceph::profile::params::osd_pool_default_size,
    osd_pool_default_min_size     => $ceph::profile::params::osd_pool_default_min_size,
    mon_initial_members           => $ceph::profile::params::mon_initial_members,
    mon_host                      => $ceph::profile::params::mon_host,
    ms_bind_ipv6                  => $ceph::profile::params::ms_bind_ipv6,
    cluster_network               => $ceph::profile::params::cluster_network,
    public_network                => $ceph::profile::params::public_network,
    osd_max_backfills             => $ceph::profile::params::osd_max_backfills,
    osd_recovery_max_active       => $ceph::profile::params::osd_recovery_max_active,
    osd_recovery_op_priority      => $ceph::profile::params::osd_recovery_op_priority,
    osd_recovery_max_single_start => $ceph::profile::params::osd_recovery_max_single_start,
    osd_max_scrubs                => $ceph::profile::params::osd_max_scrubs,
    osd_op_threads                => $ceph::profile::params::osd_op_threads,
    rbd_default_features          => $ceph::profile::params::rbd_default_features,
  }
}