This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Support specifying custom SSH public key. #970
Merged
Merged
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0b0b9a9
Allow customizing Streisand services at install time.
cpu 12c1b36
Fix vars_prompt not prompting
cpu 518c242
Prompt to customize number of vpn client profiles.
cpu bed9b47
Merge remote-tracking branch 'jlund/master' into cpu-specify-ssh-key
cpu 134e00a
Support specifying custom SSH public key.
cpu 99241d9
Quick attempt to fix travis
cpu b1f77b6
Revert "Quick attempt to fix travis"
cpu 29294c4
Another crack at a quick CI fix
cpu f7b3f02
Review feedback from @jlund.
cpu 9cf338b
Merge remote-tracking branch 'jlund/master' into cpu-customize-streisand
cpu bcd1fc0
Merge branch 'cpu-customize-streisand' into cpu-specify-ssh-key
cpu b13cb80
Rework custom SSH key support, load SSH key as required.
cpu 2877aed
Merge remote-tracking branch 'jlund/master' into cpu-specify-ssh-key-…
cpu 082a952
Fix CI for custom SSH key support.
cpu 682bad5
Remove outdated TODO
cpu 903dd2c
Remove extra space
cpu ef529d1
Clarify SSH key customize prompt
cpu ccb8020
Merge remote-tracking branch 'jlund/master' into cpu-specify-ssh-key
cpu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ | |
roles: | ||
- genesis-amazon | ||
|
||
|
||
- include: ssh-setup.yml | ||
- include: cloud-status.yml | ||
- include: streisand.yml | ||
... |
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 |
---|---|---|
|
@@ -131,6 +131,7 @@ | |
roles: | ||
- genesis-azure | ||
|
||
- include: ssh-setup.yml | ||
- include: cloud-status.yml | ||
- include: streisand.yml | ||
... |
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 |
---|---|---|
|
@@ -127,7 +127,7 @@ | |
roles: | ||
- genesis-google | ||
|
||
|
||
- include: ssh-setup.yml | ||
- include: cloud-status.yml | ||
- include: streisand.yml | ||
... |
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 |
---|---|---|
|
@@ -49,6 +49,6 @@ | |
roles: | ||
- genesis-linode | ||
|
||
|
||
- include: ssh-setup.yml | ||
- include: streisand.yml | ||
... |
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 |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
roles: | ||
- genesis-rackspace | ||
|
||
- include: ssh-setup.yml | ||
- include: cloud-status.yml | ||
- include: streisand.yml | ||
... |
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
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
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,28 @@ | ||
--- | ||
- block: | ||
- name: "Stat the Streisand SSH private key" | ||
stat: | ||
path: "{{ streisand_ssh_private_key }}" | ||
register: streisand_ssh_private_key_status | ||
changed_when: False | ||
- name: "Fail if the Streisand SSH private key file doesn't exist" | ||
fail: | ||
msg: "The Streisand SSH private key \"{{ streisand_ssh_private_key }}\" does not exist." | ||
when: streisand_ssh_private_key_status.stat.exists == False | ||
- name: "Stat the Streisand SSH public key" | ||
stat: | ||
path: "{{ streisand_ssh_private_key }}.pub" | ||
register: streisand_ssh_key_status | ||
changed_when: False | ||
- name: "Fail if the Streisand SSH public key file doesn't exist" | ||
fail: | ||
msg: "The Streisand SSH public key \"{{ streisand_ssh_private_key }}.pub\" does not exist." | ||
when: streisand_ssh_key_status.stat.exists == False | ||
#- name: "Register the Streisand SSH public key" | ||
#command: "cat {{ streisand_ssh_private_key }}.pub" | ||
#register: streisand_ssh_key | ||
#changed_when: False | ||
|
||
rescue: | ||
- fail: | ||
msg: "Ensure you specified an existing SSH private key file (not public).\n Try using `ssh-keygen -f {{ streisand_ssh_private_key }} to generate your key if it does not exist\n" |
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 @@ | ||
--- | ||
- name: Configure Ansible SSH | ||
hosts: streisand-host | ||
gather_facts: no | ||
tasks: | ||
- set_fact: | ||
ansible_ssh_private_key_file: "{{ streisand_ssh_private_key }}" |
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 |
---|---|---|
|
@@ -21,5 +21,6 @@ | |
roles: | ||
- validation | ||
|
||
- include: ssh-setup.yml | ||
- include: streisand.yml | ||
... |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good hint 👍