41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# File 'manifests/init.pp', line 41
class r10k (
String[1] $remote = $r10k::params::remote,
Optional[Hash] $sources = undef,
Stdlib::Absolutepath $cachedir = "${facts['puppet_vardir']}/r10k",
Stdlib::Absolutepath $configfile = '/etc/puppetlabs/r10k/r10k.yaml',
String[1] $version = $r10k::params::version,
Boolean $puppet_master = $r10k::params::puppet_master,
String[1] $modulepath = $r10k::params::modulepath,
Boolean $manage_modulepath = $r10k::params::manage_modulepath,
Stdlib::Absolutepath $r10k_basedir = $r10k::params::r10k_basedir,
String[1] $package_name = $r10k::params::package_name,
String[1] $provider = $r10k::params::provider,
String $gentoo_keywords = '', # lint:ignore:params_empty_string_assignment
Variant[Array,String] $install_options = [],
Boolean $mcollective = $r10k::params::mcollective,
Boolean $manage_configfile_symlink = false,
Stdlib::Absolutepath $configfile_symlink = '/etc/r10k.yaml',
Optional[Hash] $git_settings = undef,
Optional[Hash] $forge_settings = undef,
Hash $deploy_settings = { 'generate_types' => true, 'exclude_spec' => true, },
String[1] $root_user = $r10k::params::root_user,
Optional[String[1]] $proxy = undef,
Integer[1] $pool_size = $facts['processors']['count'],
Optional[String[1]] $gem_source = undef,
String[1] $root_group = $r10k::params::root_group,
Optional[Array[String[1]]] $postrun = undef,
Boolean $include_prerun_command = false,
Boolean $include_postrun_command = false,
Stdlib::Absolutepath $puppetconf_path = $r10k::params::puppetconf_path,
Enum['absent','present'] $ensure = 'present',
) inherits r10k::params {
# Check if user is declaring both classes
# Other classes like r10k::webhook is supported but
# using both classes makes no sense unless given pe_r10k
# overrides this modules default config
if defined(Class['pe_r10k']) {
fail('This module does not support being declared with pe_r10k')
}
if $include_prerun_command {
include r10k::prerun_command
}
if $include_postrun_command {
include r10k::postrun_command
}
contain r10k::install
contain r10k::config
if $mcollective {
class { 'r10k::mcollective': }
}
}
|