Install ssh key on bridge.openstack.org

We copied this over from puppetmaster, but let's manage it in ansible.

The key has been renamed in host_vars on bridge.openstack.org already.

Change-Id: Ia102dbe2ae2836880092b8997cb99135f5197b00
This commit is contained in:
Monty Taylor 2018-08-17 08:43:10 -05:00
parent 18e45a99dd
commit c4b111691b
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
4 changed files with 12 additions and 14 deletions

View File

@ -191,7 +191,6 @@ node 'puppetmaster.openstack.org' {
pin_puppet => '3.6.',
}
class { 'openstack_project::puppetmaster':
root_rsa_key => hiera('puppetmaster_root_rsa_key'),
puppetmaster_clouds => hiera('puppetmaster_clouds'),
}
file { '/etc/openstack/limestone_cacert.pem':

View File

@ -29,19 +29,6 @@ class openstack_project::puppetmaster (
],
}
if ! defined(File['/root/.ssh']) {
file { '/root/.ssh':
ensure => directory,
mode => '0700',
}
}
file { '/root/.ssh/id_rsa':
ensure => present,
mode => '0400',
content => $root_rsa_key,
}
# Cloud credentials are stored in this directory for launch-node.py.
file { '/root/ci-launch':
ensure => directory,

View File

@ -2,3 +2,4 @@
roles:
- pip3
- install-ansible
- root-keys

View File

@ -0,0 +1,11 @@
- name: Ensure .ssh directory
file:
path: /root/.ssh
mode: 0700
state: directory
- name: Write out ssh private key
copy:
content: '{{ root_rsa_key }}'
mode: 0400
dest: /root/.ssh/id_rsa