Puppet Plan: cd4peadm::support_bundle::config

Defined in:
plans/support_bundle/config.pp

Overview

Collects local configuration information from CD4PE

This plan doesn’t return anything, as all failures are soft failures as the data gathering is meant to be best effort to account for users having variations in their installed packages.

Parameters:

  • config_root_dir (String[1])

    Absolute path to where the plan will store config data

  • config (Cd4peadm::Config)


10
11
12
13
14
15
16
17
18
# File 'plans/support_bundle/config.pp', line 10

plan cd4peadm::support_bundle::config(
  Cd4peadm::Config $config,
  String[1] $config_root_dir,
) {
  $absolute_system_path = file::join($config_root_dir, 'config')
  run_command("mkdir ${absolute_system_path}", 'localhost')

  file::write(file::join($absolute_system_path, 'config.json'), to_json_pretty($config))
}