Puppet Class: foreman::cli::params
  Summary
  Parameters for Foreman CLI class
Overview
  
  
    
      | 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | # File 'manifests/cli/params.pp', line 3
class foreman::cli::params inherits foreman::cli::globals {
  # OS specific paths
  case $facts['os']['family'] {
    'RedHat': {
      $_hammer_plugin_prefix = 'rubygem-hammer_cli_'
    }
    'Debian': {
      $_hammer_plugin_prefix = 'ruby-hammer-cli-'
    }
    /(ArchLinux|Suse)/: {
      $_hammer_plugin_prefix = undef
    }
    /^(FreeBSD|DragonFly)$/: {
      $_hammer_plugin_prefix = undef
    }
    'windows': {
      $_hammer_plugin_prefix = undef
    }
    default: {
      fail("${facts['networking']['hostname']}: This module does not support osfamily ${facts['os']['family']}")
    }
  }
  $hammer_plugin_prefix = pick($foreman::cli::globals::hammer_plugin_prefix, $_hammer_plugin_prefix)
} |