Foreman on libvirt: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 7: Zeile 7:
 
*chown foreman:foreman /usr/share/foreman/.ssh   
 
*chown foreman:foreman /usr/share/foreman/.ssh   
 
*sudo -u foreman ssh-keygen   
 
*sudo -u foreman ssh-keygen   
*sudo -u foreman ssh-copy-id foreman@<kvm_host> 
+
*sed -i -e "/foreman/s/false/bash/" /etc/passwd
*sudo -u foreman ssh foreman@<kvm_host>
+
*su - foreman
 +
*ssh-copy-id root@mabel:
 +
*exit
 +
*sed -i -e "/foreman/s/bash/false/" /etc/passwd
 +
*sudo -u foreman ssh foreman@<kvm_host>
 +
 
 
=Links=
 
=Links=
 
*https://www.linuxfrickeln.de/foreman-mit-kvm-host-verbinden-compute-ressource/
 
*https://www.linuxfrickeln.de/foreman-mit-kvm-host-verbinden-compute-ressource/

Aktuelle Version vom 9. Februar 2017, 14:58 Uhr

Install

  • apt-get install foreman-libvirt libvirt-bin
  • systemctl restart apache2

Config

  • mkdir /usr/share/foreman/.ssh
  • chmod 700 /usr/share/foreman/.ssh
  • chown foreman:foreman /usr/share/foreman/.ssh
  • sudo -u foreman ssh-keygen
  • sed -i -e "/foreman/s/false/bash/" /etc/passwd
  • su - foreman
  • ssh-copy-id root@mabel:
  • exit
  • sed -i -e "/foreman/s/bash/false/" /etc/passwd
  • sudo -u foreman ssh foreman@<kvm_host>

Links