Puppet Class: r10k::mcollective

Inherits:
r10k::params
Defined in:
manifests/mcollective.pp

Summary

Install the r10k mcollective agent

Overview

Parameters:

  • ensure (String[1]) (defaults to: 'present')
  • server (Boolean) (defaults to: true)
  • client (Boolean) (defaults to: true)
  • http_proxy (String) (defaults to: '')
  • policies (Array) (defaults to: [])


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
# File 'manifests/mcollective.pp', line 9

class r10k::mcollective (
  String[1] $ensure  = 'present',
  Boolean $server    = true,
  Boolean $client    = true,
  String $http_proxy = '', # lint:ignore:params_empty_string_assignment
  Array $policies    = [],
) inherits r10k::params {
  include mcollective
  mcollective::module_plugin { 'mcollective_agent_r10k':
    ensure        => $ensure,
    server        => $server,
    client        => $client,
    server_config => {
      'http_proxy' => $http_proxy,
    },
    config_name   => 'r10k',
    common_files  => [
      'agent/r10k.ddl',
      'agent/r10k.json',
    ],
    server_files  => [
      'agent/r10k.rb',
    ],
    client_files  => [
      'application/r10k.rb',
    ],
    policies      => $policies,
  }
}