Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ib-cli create-iso includes contents of ssh-public-key-file vs its path #474

Open
jmencak opened this issue May 2, 2024 · 0 comments
Open

Comments

@jmencak
Copy link

jmencak commented May 2, 2024

If you supply --ssh-public-key-file <path-to-custom-ssh-key-file> to ib-cli create-iso and use ibi-butane.template from this repository, the contents of the ssh-key-file will be rendered, not path of the file.

Example:

passwd:
  users:
    - name: core
      ssh_authorized_keys:
        - -----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEAm1wm8va+vZp/pRp+/5o2UZK/koRlplXF0+KW8APCCQZIyYPx
LVxbi9VYz+UG21r42pENWaTBGJC+FdRptXrc5KA7jFflYb7y/LlufV3syx9TMvUU

Expected:

passwd:
  users:
    - name: core
      ssh_authorized_keys:
        - path-to-custom-ssh-key-file

This will break the create-iso command like this:

 failed to create installation ISO: failed to render ignition from config: failed to run "podman" in host namespace with args [run -v /mnt/temp/data/work/ibi/manual/data:/data:rw,Z --rm quay.io/coreos/butane:release --pretty --strict -d /data /data/config.bu -o /data/ibi-ignition.json]: Error translating config: Error unmarshaling yaml: yaml: line 9: could not find expected ':'
: exit status 1 
FATA[2024-05-02 16:25:57] Error executing installationiso command: failed to create installation ISO: failed to render ignition from config: failed to run "podman" in host namespace with args [run -v /mnt/temp/data/work/ibi/manual/data:/data:rw,Z --rm quay.io/coreos/butane:release --pretty --strict -d /data /data/config.bu -o /data/ibi-ignition.json]: Error translating config: Error unmarshaling yaml: yaml: line 9: could not find expected ':'

@jmencak jmencak changed the title ib-cli create-iso includes contents of ssh-public-key-file rather its path ib-cli create-iso includes contents of ssh-public-key-file vs its path May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant