fuel-library/deployment/puppet/ceph/manifests/ssh.pp
Dmitry Borodaenko 2703ad5acf cleanup radosgw dependencies
* move Ceph_file spaceship up the chain to avoid circular dependency
 * move the rest of package->file requires into the main chain
 * drop if(enabled): don't include the class if you don't need it
 * typos: s3gw.fcgi.erb 766->755, keyring 650->640, radiosgw->radosgw
 * drop the completed ssh, cinder, and glance TODO comments
 * syntax checker warnings fixes
2013-10-07 09:58:07 -07:00

27 lines
750 B
Puppet

# generate and install SSH keys for Ceph
class ceph::ssh {
$ssh_config = '/root/.ssh/config'
$private_key = '/var/lib/astute/ceph/ceph'
$public_key = '/var/lib/astute/ceph/ceph.pub'
install_ssh_keys {'root_ssh_keys_for_ceph':
ensure => present,
user => 'root',
private_key_path => $private_key,
public_key_path => $public_key,
private_key_name => 'id_rsa',
public_key_name => 'id_rsa.pub',
authorized_keys => 'authorized_keys',
}
if !defined(File[$ssh_config]) {
file { $ssh_config :
mode => '0600',
content => "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null\n",
}
}
Install_ssh_keys['root_ssh_keys_for_ceph'] -> File[$ssh_config]
}