Sha256: 490b4ae39b8730c45ded7e943f7917e13dcb6d9086a1a8e42b21cd356c2155ce
Contents?: true
Size: 1018 Bytes
Versions: 7
Compression:
Stored size: 1018 Bytes
Contents
# The profile class include the classes instantiation or # puppet/modules type resource definitions. # It can include hiera calls for the parametter setting. # Example: # class profiles::category::technology { # $technology_parameters = hiera("technology") # $parameter1 = technology_parameters[parameter1] # ... # class { "technology_resource": # parameter1 => $parameter1 # ... # } # } class profiles::base::security::ssh { # Obtain ssh parameters from hiera $ssh_parameters = hiera('ssh::server', {}) $port = $ssh_parameters[port] $password_authentication = $ssh_parameters[password_authentication] $pubkey_authentication = $ssh_parameters[pubkey_authentication] $permit_root_login = $ssh_parameters[permit_root_login] # Instance the ssh::server class with hiera parameters class { '::ssh::server': port => $port, password_authentication => $password_authentication, pubkey_authentication => $pubkey_authentication, permit_root_login => $permit_root_login, } }
Version data entries
7 entries across 7 versions & 1 rubygems