This fix is to avoid the issue described in #1942356
Cloud-init may not give permissions to the entire .ssh directory
which breaks sed --in-place operation, since it always create a
temporary file in the same directory.
New releases already use ssh-admin playbook instead of shell
commands.
Closes-Bug: #1942356
Change-Id: If2db45f09eface56b5b26646b97e1fdbfb7b5a3e
Signed-off-by: Douglas Viroel <email address hidden>
Reviewed: https:/ /review. opendev. org/c/openstack /python- tripleoclient/ +/806993 /opendev. org/openstack/ python- tripleoclient/ commit/ ffa2440ee13be9b 53a2f7fe216dc75 58a2dcad02
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit ffa2440ee13be9b 53a2f7fe216dc75 58a2dcad02
Author: Douglas Viroel <email address hidden>
Date: Wed Sep 1 18:31:45 2021 -0300
Fix edit authorized_keys file in-place
This fix is to avoid the issue described in #1942356
Cloud-init may not give permissions to the entire .ssh directory
which breaks sed --in-place operation, since it always create a
temporary file in the same directory.
New releases already use ssh-admin playbook instead of shell
commands.
Closes-Bug: #1942356 56b5b26646b97e1 fdbfb7b5a3e
Change-Id: If2db45f09eface
Signed-off-by: Douglas Viroel <email address hidden>