Re: UserKnownHostsFile for copr-*-dev machines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 02 Apr 2015 18:06:05 +0200
Miroslav Suchý <msuchy@xxxxxxxxxx> wrote:

> Valentin and me are now playing quite a lot with copr-*-dev as part
> of new OpenStack testing and I always have to ask somebody to wipe
> the entry from known_hosts on lockbox otherwise rbac will refuse to
> connect.
> 
> Can I suggest to put into ssh_config on lockbox:
> 
> Host copr-be-dev.cloud.fedoraproject.org
> copr-fe-dev.cloud.fedoraproject.org UserKnownHostsFile /dev/null
> 
> Can I get two +1? And can somebody put it there then?

Instead how about this: 

The new ansible 1.9 version has a known_hosts module. ;) 

So, stick at the top of your playbook: 

- name: clean out old known_hosts
  local_action: known_hosts path=/root/.ssh/known_hosts name=copr-be-dev.cloud.fedoraproject.org state=absent

and we can remove it when not needed?

kevin

Attachment: pgp6Urj0BemYM.pgp
Description: OpenPGP digital signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux