Skip to content

Commit

Permalink
Optionally define authorized key url
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwyn Kik authored and yajo committed Mar 27, 2019
1 parent 4810191 commit 608365a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ reboot_postinstall: true
# Usually you don't need to change this
bootloader: grub

# You can change this to an URL to automatically add authorized keys
# to the root user of the installed system
sshkey_url: false

# Needed to run Docker on XFS; disable setting to false
# HACK https://github.com/hetzneronline/installimage/pull/8
xfs_options: "-n ftype=1"
Expand Down
4 changes: 4 additions & 0 deletions templates/autosetup.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
IMAGE {{ image }}
BOOTLOADER {{ bootloader }}
HOSTNAME {{ hostname }}
{% if sshkey_url %}
# SSH keys to put on the installed system
SSHKEYS_URL {{ sshkey_url }}
{% endif %}

# Hard disk drives to wipe and use
{% for device in ansible_devices if device.startswith("sd") or device.startswith("nvme") -%}
Expand Down

0 comments on commit 608365a

Please # to comment.