Merge "Add nodepool_ssh_public_key"

This commit is contained in:
Jenkins 2016-05-25 21:56:57 +00:00 committed by Gerrit Code Review
commit 3fc6515604
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class nodepool (
$mysql_root_password,
$mysql_password,
$nodepool_ssh_private_key,
$nodepool_ssh_public_key = undef,
$git_source_repo = 'https://git.openstack.org/openstack-infra/nodepool',
$revision = 'master',
$statsd_host = undef,
@ -215,6 +216,17 @@ class nodepool (
require => File['/home/nodepool/.ssh'],
}
if ($nodepool_ssh_public_key != undef) {
file { '/home/nodepool/.ssh/id_rsa.pub':
ensure => present,
content => $nodepool_ssh_public_key,
mode => '0644',
owner => 'nodepool',
group => 'nodepool',
require => File['/home/nodepool/.ssh'],
}
}
file { '/home/nodepool/.ssh/config':
ensure => present,
source => 'puppet:///modules/nodepool/ssh.config',