Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge seankelly/buildbot-infra:bslave1 (PR #96)
- Loading branch information
Showing
8 changed files
with
519 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
- name: Set ssh keys | ||
copy: | ||
content: "{{ ssh_private_key }}" | ||
dest: "{{ getent_passwd[worker_account].4 }}/.ssh/{{ ssh_private_key_file }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
ssh_client_hosts: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
# Uses the ssh_client_hosts role variable and ssh_host_keys group variable. | ||
- name: Set host keys | ||
template: | ||
src: known_hosts.j2 | ||
dest: "{{ getent_passwd[worker_account].4 }}/.ssh/known_hosts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% for ssh_host in ssh_client_hosts %} | ||
{% if ssh_host in ssh_host_keys %} | ||
{% for host_key in ssh_host_keys[ssh_host] %} | ||
{{ ssh_host }} {{ host_key }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} |
Oops, something went wrong.