Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394752
init.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
init.pp
View Options
# Main file for puppet-ssh
class
ssh
(
Hash
$server_options
=
{},
Hash
$server_match_block
=
{},
Hash
$client_options
=
{},
Hash
$users_client_options
=
{},
String
$version
=
'present'
,
Boolean
$storeconfigs_enabled
=
true
,
Boolean
$validate_sshd_file
=
$::ssh::params::validate_sshd_file,
Boolean
$use_augeas
=
false
,
Array
$server_options_absent
=
[],
Array
$client_options_absent
=
[],
Boolean
$use_issue_net
=
false
,
Boolean
$purge_unmanaged_sshkeys
=
true
,
)
inherits
ssh
::
params
{
# Merge hashes from multiple layer of hierarchy in hiera
$hiera_server_options
=
lookup
(
"${module_name}::server_options"
,
Optional
[
Hash
],
'hash'
,
undef
)
$hiera_server_match_block
=
lookup
(
"${module_name}::server_match_block"
,
Optional
[
Hash
],
'hash'
,
undef
)
$hiera_client_options
=
lookup
(
"${module_name}::client_options"
,
Optional
[
Hash
],
'hash'
,
undef
)
$hiera_users_client_options
=
lookup
(
"${module_name}::users_client_options"
,
Optional
[
Hash
],
'hash'
,
undef
)
$fin_server_options
=
$hiera_server_options
?
{
undef
=>
$server_options,
''
=>
$server_options,
default
=>
$hiera_server_options,
}
$fin_server_match_block
=
$hiera_server_match_block
?
{
undef
=>
$server_match_block,
''
=>
$server_match_block,
default
=>
$hiera_server_match_block,
}
$fin_client_options
=
$hiera_client_options
?
{
undef
=>
$client_options,
''
=>
$client_options,
default
=>
$hiera_client_options,
}
$fin_users_client_options
=
$hiera_users_client_options
?
{
undef
=>
$users_client_options,
''
=>
$users_client_options,
default
=>
$hiera_users_client_options,
}
class
{
'::ssh::server'
:
ensure
=>
$version,
storeconfigs_enabled
=>
$storeconfigs_enabled,
options
=>
$fin_server_options,
validate_sshd_file
=>
$validate_sshd_file,
use_augeas
=>
$use_augeas,
options_absent
=>
$server_options_absent,
use_issue_net
=>
$use_issue_net,
}
class
{
'::ssh::client'
:
ensure
=>
$version,
storeconfigs_enabled
=>
$storeconfigs_enabled,
options
=>
$fin_client_options,
use_augeas
=>
$use_augeas,
options_absent
=>
$client_options_absent,
}
# If host keys are being managed, optionally purge unmanaged ones as well.
if
(
$storeconfigs_enabled
and
$purge_unmanaged_sshkeys)
{
resources
{
'sshkey'
:
purge
=>
true
,
}
}
create_resources
(
'::ssh::client::config::user'
,
$fin_users_client_options)
create_resources
(
'::ssh::server::match_block'
,
$fin_server_match_block)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:29 PM (9 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3304054
Attached To
rSPSSH puppet-saz-ssh
Event Timeline
Log In to Comment