-
Notifications
You must be signed in to change notification settings - Fork 240
Expand file tree
/
Copy pathconfig.pp
More file actions
32 lines (29 loc) · 688 Bytes
/
config.pp
File metadata and controls
32 lines (29 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# @summary
# Manages ssh configuration
#
# @api private
#
class ssh::client::config {
assert_private()
$options = $ssh::client::merged_options
$use_augeas = $ssh::client::use_augeas
if $use_augeas {
$options.each |String $k, Hash $v| {
ssh_config { $k:
* => $v,
}
}
} else {
concat { $ssh::client::ssh_config:
ensure => present,
owner => $ssh::client::config_user,
group => $ssh::client::config_group,
mode => '0644',
}
concat::fragment { 'ssh_config global config':
target => $ssh::client::ssh_config,
content => template("${module_name}/ssh_config.erb"),
order => '00',
}
}
}