Red Hat SATELLITE 5.3.0 RELEASE NOTES Informações Técnicas Página 105

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 199
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 104
chmod +x /tmp/add_cumin_user.py
/tmp/add_cumin_user.py admin 24^gold
#Start Cumin
echo "--- Starting cumin ---"
chkconfig cumin on
service cumin start
#Restore original rc.local
echo "--- Putting original rc.local back ---"
/bin/mv /etc/rc.d/rc.local /etc/rc.d/rc.local.install
/bin/mv /etc/rc.d/rc.local.shipped /etc/rc.d/rc.local
#setup the perfect number application
wget http://sat-vm.cloud.lab.eng.bos.redhat.com/pub/resources/perfect.tgz -O /tmp/perfect.tgz
tar -xpzf /tmp/perfect.tgz -C /home/admin
/bin/mv /home/admin/perfect/perfect.py /usr/tmp/perfect.py
/bin/mv /home/admin/perfect/perfect /usr/tmp/perfect
echo COMPLETE
) >> /var/log/rc.local.out 2>&1
add_cumin_user.py – this script, called from rc.local, is a small expect script to
add the cumin user.
#!/usr/bin/python
import sys, os, pexpect
cuser = sys.argv[1]
passwd = sys.argv[2]
signproc = pexpect.spawn("cumin-admin add-user %s" % cuser)
match = signproc.expect(["Enter new password:"])
signproc.sendline(passwd)
match = signproc.expect(["Confirm new password:"])
signproc.sendline(passwd) /pub/projects/cloud/resources/
match = signproc.expect([pexpect.EOF])
The configuration of the MRG manager web interface requires the user to open the
appropriate URL (e.g., http://mrg-vm.cloud.lab.eng.bos.redhat.com:45672/login.html) for
logging in and providing the established User Name and Password.
105 www.redhat.com
Vista de página 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 198 199

Comentários a estes Manuais

Sem comentários