Re: automate RHN setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's actually not a kickstart option, but it is a cmd you can put in your %post section. Sorry I wasn't more clear about it. I'm trying to do this with RH AS 2.1, but it is also available in 8.0.

You can do a man rhnreg_ks in 8.0, or a rhnreg_ks --help in AS2.1(there is no man page).

Thanks,

James

Nicholas P. Bernstein wrote:
James: I hadn't seen this option to kickstart. Could you point me to some
documentation, I have pretty much read all of the documentation on kickstart
that I could find but must have missed this. What version of RH are you
using?

tia,
Nick

-----Original Message-----
From: kickstart-list-admin@xxxxxxxxxx
[mailto:kickstart-list-admin@xxxxxxxxxx]On Behalf Of James S. Martin
Sent: Friday, January 24, 2003 8:30 AM
To: kickstart-list@xxxxxxxxxx
Subject: automate RHN setup


I'm trying to use the rhnreg_ks program to automatically configure my
machine during kickstart for the Red Hat Network.  I am successful if I do:

rhnreg_ks --username=myname --password=mypasswd
--email=james.martin@xxxxxxxxx


however, if I use the --cryptedpassword option I get:


Traceback (innermost last):
   File "/usr/sbin/rhnreg_ks", line 244, in ?
     main()
   File "/usr/sbin/rhnreg_ks", line 205, in main
     ret = rhnreg.reserveUser(username, password)
   File "/usr/share/rhn/register/rhnreg.py", line 457, in reserveUser
     ret = doCall(s.registration.reserve_user, username, password)
   File "/usr/share/rhn/register/rhnreg.py", line 153, in doCall
     ret = apply(method, args)
   File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 689, in
__call__
     return self.__send(self.__name, args)
   File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 731, in
__request
     request = dumps(params, methodname)
   File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 505, in dumps
     data = m.dumps(params)
   File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 264, in dumps
     self.__dump(v)
   File "/usr/lib/python1.5/site-packages/xmlrpclib.py", line 275, in __dump
     raise TypeError, "cannot marshal %s objects" % type(value)
TypeError: cannot marshal <type 'None'> objects



Of course I'd much rather crypt the password so people can't glean it
from the kickstart file.  Has anyone else tried to do this?


Thanks,

James



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list







[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux