theforeman / community-templates

A place to share templates for various OSes for Foreman's provisioning
GNU General Public License v3.0
144 stars 182 forks source link

Update oVirt templates #737

Closed lzap closed 4 years ago

lzap commented 4 years ago

Update some changes which we made in default kicsktart template in oVirt and Atomic templates. Namely instead @host.ip or mac which point to primary_interface, it now uses the correct provision_interface.

Also include IPA and ReX snippets for oVirt.

lzap commented 4 years ago

One more comment, a customer found that ssh keys aren't deployed when installing from liveimg, because it seems that all changes in /mnt/sysroot are overwritten after restart. One workaround would be something like:

ssh_path=`df -h |grep /dev/mapper/rhvh-rhvh |awk '{print $NF}'`
mkdir -p $ssh_path/root/.ssh
cat << EOF >> $ssh_path/root/.ssh/authorized_keys
ssh-rsa AAAAB3NzaxxxxxxxxxxpQ7 foreman-proxy@xxxxxx.corp
EOF

But I will talk to Anacondy engineers if there is a better way so we could use our standard snippet instead which writes to ~user/.ssh.

lzap commented 4 years ago

Do not merge yet until I sort this out please.

tbrisker commented 4 years ago

On behalf of the Foreman team, thank you for your contribution to the Foreman community templates repository! This repository is being archived and all templates are migrated to the relevant repositories. If you wish to pursue this change, please re-open the PR against the relevant repository. For more information and background, please click here.