adding beaker virthost ssh host key to beaker server

This commit is contained in:
Tim Flink 2015-12-02 18:11:38 +00:00
parent 24e09cd77d
commit 7d7731474e
2 changed files with 10 additions and 0 deletions

View file

@ -10,3 +10,7 @@ vmhost: virthost-comm04.qa.fedoraproject.org
datacenter: phx2
fas_client_groups: sysadmin-qa,sysadmin-main
# it'd be nice to have this done automagically but I don't know of a reasonable easy way to do that
beaker_virthost_signatures:
- hostname: 'qa04.qa.fedoraproject.org,10.5.124.154'
- signature: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDcv0X3KnCYYn5xowtKEYcnroNkihoyyfyVhRU8xt3nLmxSbmUHdjd1FWlhUuaOziKxLKe2NPQOS6ExDhgZKkqOTl73KJWIYPx8Uz3MITvGoYLIJ1EhFwEkVb2dlLsbsgKTVMnIht4Ri8HUZf4pHMmTUgWfS6Te32DJwF8dbpe7Xc45fjzWOYH3PcLxrKWR94Qaz228H+pWQuVBYwsk7evZA9NMmChiJG9rCXAynCbGCpEMyW46uDGAPSBDGdAGvSq9+9MrXmQQzWsLcGpWh9zomzkwhO4aOvN7lWI442JO594MCpp9OZfxT9D0JsTcCq6nGaQV/Sqj3hZwh0APb//x'

View file

@ -99,3 +99,9 @@
- beakerd
tags:
- beaker-server
- name: ensure beaker server has all relevant virthost ssh signatures in known_hosts
lineinfile: dest=/root/.ssh/known_hosts regexp='{{ item.hostname }}' line='{{ item.hostname }} {{ item.signature }}' create=yes owner={{ item.user }} group={{ slaves_group }}
with_items:
- '{{ beaker_virthost_signatures }}'