As either a required parameter for the install script and/or have the install script ask for the FQDN of the RHUA. Subsequently, the install script should automatically configure the various configuration files that today require manual intervention. Thanks.
This can be handled in a multitude of ways per our phone call. Take your pick.
We should make this step part of what happens when rh-rhua-config gets installed on the rhua. This bug will also require documentation changes.
cloude commit 4091449016baf15696fa7d2013ed5653963acfac whoops.. need to update the messaging section too.. [messaging] url: tcp://localhost:5672
AFAICT the messaging section is already handled and configured correctly # Messaging options. # # url: the broker url. # cacert: path to PEM encoded CA certificate file # clientcert: path to PEM encoded file containing both # the private key and certificate. # # The url has form: <transport>://<host>:<port> where # transport can be (tcp|ssl). When ssl is specified, # cacert and clientcert must be specified. [messaging] url: ssl://ip-10-46-135-129.ec2.internal:5674 cacert: /etc/pki/rhua/qpid-ca.crt clientcert: /etc/pki/rhua/qpid-client.crt
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: For Docs... I believe the following two sections from the docs can now be removed.. http://docs.redhat.com/docs/en-US/Red_Hat_Update_Infrastructure/2.0/html-single/Installation_Guide/index.html#part-Installation_Guide-Installation 2.3. Package Installation Procedure 2.2. Installing the Red Hat Update Infrastructure packages On the RHUA server, edit the /etc/pulp/pulp.conf configuration file using your preferred text editor to include the correct hostname of the RHUA server. The hostname will be listed as localhost by default: [server] server_name: localhost ... ... [messaging] url: tcp://localhost:5672 Also on the RHUA server, edit the /etc/pulp/client.conf configuration file using your preferred text editor to include the correct hostname of the RHUA server. The hostname will be listed as localhost by default: [server] host = localhost.localdomain ... ... [cds] baseurl = https://localhost/pulp/repos keyurl = http://localhost/pulp/gpg ksurl = http://localhost/pulp/ks Also on the RHUA server, edit the /etc/rhui/rhui-tools.conf configuration file using your preferred text editor, and add the fully qualified domain name (FQDN) to be used to connect to the RHUA: [rhua] hostname: rhua.example.com
OK.. I see my patch is crap.. and not the way to do this... The better approach is to update /cloude/rhui-2.0/tools/src/rhui/rpm/rhua.py and add a line to configure rhui-tools.conf python /usr/bin/rhui_configurator.py /etc/rhui/rhui-tools.conf !PULP_CONFIGURATOR!
Created attachment 586707 [details] one shot at a better patch James, can you please review this. I'm not entirely certain what I'm attempting here is the right thing to do. It also does not address consumer.conf Let me know what you think.
The patch looks good, please commit.
Need to make sure that rhua.hostname is also updated in rhui-tools.conf
cloude commit a601126df74223f547263252ce739a0a783456f5
Created attachment 601321 [details] Verifying screen log Verified that having changing [rhua] section hostname attribute of the answers file (including a version increase), rhui-installer produces a config rpm applying of which in turn updates the appropriate config file rhua hostnames. Please note the files /etc/pulp/cds.conf and /etc/pulp/consumer/consumer.conf were modified mistakenly by me during the installation.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,25 +1 @@ -For Docs... I believe the following two sections from the docs can now be removed.. +Previously, all configuration files requiring the fully qualified domain name (fqdn) of the Red Hat Update Agent (RHUA)had to be manually configured. The updated version of the rhui-installer produces a config rpm which updates the appropriate configuration files with the RHUA hostname.-http://docs.redhat.com/docs/en-US/Red_Hat_Update_Infrastructure/2.0/html-single/Installation_Guide/index.html#part-Installation_Guide-Installation - -2.3. Package Installation -Procedure 2.2. Installing the Red Hat Update Infrastructure packages - -On the RHUA server, edit the /etc/pulp/pulp.conf configuration file using your preferred text editor to include the correct hostname of the RHUA server. The hostname will be listed as localhost by default: -[server] -server_name: localhost -... -... -[messaging] -url: tcp://localhost:5672 -Also on the RHUA server, edit the /etc/pulp/client.conf configuration file using your preferred text editor to include the correct hostname of the RHUA server. The hostname will be listed as localhost by default: -[server] -host = localhost.localdomain -... -... -[cds] -baseurl = https://localhost/pulp/repos -keyurl = http://localhost/pulp/gpg -ksurl = http://localhost/pulp/ks -Also on the RHUA server, edit the /etc/rhui/rhui-tools.conf configuration file using your preferred text editor, and add the fully qualified domain name (FQDN) to be used to connect to the RHUA: -[rhua] -hostname: rhua.example.com
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2012-1205.html