-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 26 May 2009 19:54:51 +0200
Jan Pazdziora <[email protected]> wrote:
>
> Hello,
>
> I'm about to add script
>
> /usr/bin/spacewalk-cfg-get
>
> to spacewalk-backend-tools. The script can be used to reliably
> retrieve configuration values from /etc/rhn/rhn.conf from non-Python
> environments, without having to do grep or awk, which have potential
> issues with commented lines, etc. This script uses rhnConfig to
> it should to the right thing.
>
> The script is as simple as
>
> #!/usr/bin/python
>
> import sys
> sys.path.append("/usr/share/rhn")
>
> from common.rhnConfig import RHNOptions
>
> cfg = RHNOptions()
> cfg.parse()
>
> for i in sys.argv :
> val = cfg.get(i)
> if val != None :
> print val
>
> Please shout if you do not like the idea if such a thing landing
> in Spacewalk repo tomorrow.
+1
>
> Also, Mirek said he would like to use such a thing in Proxy but
> proxy only uses spacewalk-backend, not spacewalk-backend-tools.
> Would you object having such a /usr/bin script in spacewalk-backend?
> Presently the package only owns /etc/rhn/default/rhn.conf
> and /usr/share/rhn/common/* files.
>
Also sounds good to me, seems logical that a simple tool to get the
rhn.conf values should come with the package that owns the file itself.
- --
Devan Goodwin <[email protected]>
Software Engineer Spacewalk / RHN Satellite
Halifax, Canada 650.567.9039x79267
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (GNU/Linux)
iEYEARECAAYFAkocLyAACgkQAyHWaPV9my4MIwCgj+aLKHKZFt/pVl1puZQYnOMw
ogsAoLUum3am9y1antw3W9ZzQ2lhrqI5
=AouZ
-----END PGP SIGNATURE-----
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel