request for module rhn_register

16 views
Skip to first unread message

pvp1932

unread,
Jan 31, 2017, 8:50:21 AM1/31/17
to Ansible Project
Hello,

a request for module rhn_register to add --proxy option of therhnreg_ks command,  to the module for target servers that do not have direct access to the public network.

regards,

pvp1932

Jinesh Choksi

unread,
Feb 1, 2017, 6:34:35 AM2/1/17
to Ansible Project
There doesn't seem to be any way to pass additional options to the rhnreg_ks command that the rhn_register Ansible module builds up.

The only two workarounds I can think off are:


a) Amend the /etc/sysconfig/rhn/up2date config file and specify the proxy details in there. See this SO answer as there may be missing config lines for proxyPassword / proxyUser which you will need to add manually.


b) if you replace /usr/sbin/rhnreg_ks with a script which calls the original /usr/sbin/rhnreg_ks with the --proxy + --proxyUser + --proxyPassword options + whatever is passed on the command line.


Both of those are ugly since with a) you have credentials saved in a file and with b) your modifying sbin contents.

You should raise a Github issue for this feature request.
Reply all
Reply to author
Forward
0 new messages