summaryrefslogtreecommitdiff
path: root/manifests/server/configure_ssh.pp
blob: 987cc7af92a5c3775932011dd1f151e3cc53a148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class check_mk::server::configure_ssh (
  $check_mk_tag     = 'check_mk_sshkey'
) {
  # collect exported files from client::generate_sshkey
  File <<| tag == $check_mk_tag |>>

  # configure ssh access to agents which have 'ssh' tags
  file { "${check_mk::config::etc_dir}/check_mk/conf.d/use_ssh.mk":
    source => [ 'puppet:///modules/site_check_mk/use_ssh.mk',
                'puppet:///modules/check_mk/use_ssh.mk' ],
    owner  => $::check_mk::shelluser,
    group  => $::check_mk::shellgroup,
    mode   => '0644',
    notify => Exec['check_mk-refresh']
  }
}