Bug 1116664

Summary: missing server resource or inaccurate documentaion
Product: Red Hat Satellite 5 Reporter: Sage Grigull <mgrigull>
Component: Docs Client Config GuideAssignee: Dan Macpherson <dmacpher>
Status: CLOSED CURRENTRELEASE QA Contact: Dan Macpherson <dmacpher>
Severity: medium Docs Contact:
Priority: medium    
Version: 560CC: cperry, dmacpher, melewis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-17 08:05:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1018166    

Description Sage Grigull 2014-07-07 01:54:21 UTC
Description of problem:
documentation describes bootstrap file which does not exist.

Version-Release number of selected component (if applicable):
5.6

How reproducible:
https://access.redhat.com/documentation/en-US/Red_Hat_Network_Satellite/5.4/html/Client_Configuration_Guide/sect-Client_Configuration_Guide-Configuring_the_Client_Applications-Registering_with_Activation_Keys.html

Steps to Reproduce:
1. http://myserver/pub/bootstrap/ contains python scripts
2. no http://myserver/pub/bootstrap.sh
3.


Was this step only needed to import a selfsigned RHN SSL cert ?
Is there an easier way to import this trust on the client ?

Comment 1 Clifford Perry 2014-07-15 09:24:38 UTC
We need to update documentation. 

The bootstrap script is not generated by default. Once generated you will find it under /pub/ 

To generate, either use the command line tool: 

# rhn-bootstrap

Or WebUI (which calls tooling): 
 - Admin -> Red Hat Satellite Configuration -> Bootstrap Script 


Cliff

Comment 5 Sage Grigull 2014-11-21 00:05:24 UTC
The package only packs one file:
$ rpm -qlp rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT


I found RHEL6 expects it in different location by default.  When using the ansible module for satellite registration its not practical to specify an alternate cert location [1] .  I ended up using the following code for my purposes:


  - name: import RHN rpm signing keys rhel6
    get_url: url=http://{{ rhn_sat_server }}/pub/RHN-ORG-TRUSTED-SSL-CERT dest=/usr/share/rhn/RHNS-CA-CERT owner=root group=root mode=0644 force=yes
    when: ansible_distribution == "RedHat" and ansible_distribution_major_version == "6"

  - name: import RHN rpm signing keys rhel7
    get_url: url=http://{{ rhn_sat_server }}/pub/RHN-ORG-TRUSTED-SSL-CERT dest=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT owner=root group=root mode=0644 force=yes
    when: ansible_distribution == "RedHat" and ansible_distribution_major_version == "7"

  - name: register system to rhn via key
    rhn_register: state=present activationkey={{ activation_key }} server_url=https://{{ rhn_sat_server }}/XMLRPC


I don't recall where RHEL5 expects it.




[1] http://docs.ansible.com/rhn_register_module.html

Comment 7 Dan Macpherson 2014-11-21 04:54:18 UTC
(In reply to Marco Grigull from comment #5)
> The package only packs one file:
> $ rpm -qlp rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
> /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
> 
> 
> I found RHEL6 expects it in different location by default.  When using the
> ansible module for satellite registration its not practical to specify an
> alternate cert location [1] .   
> 
> [1] http://docs.ansible.com/rhn_register_module.html

Hi, Marco. Can you elaborate on this further? I couldn't see why it wasn't practical to specify an alternate cert location from the link you posted.

Comment 9 Dan Macpherson 2015-03-17 08:05:45 UTC
This minor fix is now live in the 5.7 documentation.

Closing this bug due to lack of response. If any further issues, please feel free to reopen it.