Puppet Class: profile::cephadm::target

Defined in:
modules/profile/manifests/cephadm/target.pp

Overview

SPDX-License-Identifier: Apache-2.0 Class: profile::cephadm::target

This profile provides the necessary setup for a node to be controlled by cephadm.

Parameters:

  • cephadm_clusters (Cephadm::Clusters) (defaults to: lookup('cephadm_clusters'))
  • cephadm_cluster_label (String) (defaults to: lookup('profile::cephadm::cluster_label'))


6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/cephadm/target.pp', line 6

class profile::cephadm::target(
    Cephadm::Clusters $cephadm_clusters = lookup('cephadm_clusters'),
    String $cephadm_cluster_label       = lookup('profile::cephadm::cluster_label'),
) {

    $controller = $cephadm_clusters[$cephadm_cluster_label]['controller']
    # Monitor nodes run mgr daemons, and need ssh access to targets
    $mgrs = $cephadm_clusters[$cephadm_cluster_label]['monitors']

    class { 'cephadm::target':
        cephadm_controller => $controller,
        cephadm_mgrs       => $mgrs,
    }
}