Register Endpoint to Red Hat Satellite 6
| 0 Votes |
Description
This Task will register an endpoint to a Satellite 6 server. Enter the required parameters when prompted.
Complete the prerequisites for using this task:
- Make sure the subscription-manager.conf plugin is enabled on the endpoint:
# grep enabled /etc/yum/pluginconf.d/rhnplugin.conf /etc/yum/pluginconf.d/subscription-manager.conf
/etc/yum/pluginconf.d/rhnplugin.conf:enabled = 0
/etc/yum/pluginconf.d/subscription-manager.conf:enabled=1
- Configure the system for registration [ https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html/User_Guide/Configuring_Systems_for_Registration.html ]
- Create an activation key [ https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html/User_Guide/chap-Configuring_Activation_Keys.html#Create_a_New_Activation_Key ]
- Follow the steps from the Red Hat Satellite 6 User Guide [ https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.0/html/User_Guide/sect-Registration.html#Registering_a_System ]
- For more information on using Red Hat Subscription Management and subscription manager, refer to this guide [ https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/index.html ]
Property Details
| 23384 | |
| Beta - Preliminary testing ready for more | |
| Register Endpoint to Red Hat Satellite 6 | |
| BESC | |
| Configuration | |
| BigFix | |
| 2/3/2017 12:00:00 AM | |
| redhat satellite | |
| True | |
| andym on 2/2/2017 11:12:30 PM | |
| andym on 2/2/2017 11:12:30 PM | |
| 6583 Views / 15 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
| Used in 1 fixlet | * Results in a true/false |
(version of client >= "8.2") AND (name of operating system starts with "Linux Red Hat")
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
action parameter query "ORG" with description "Red Hat Satellite 6 Organization"
action parameter query "ACTIVATION_KEY" with description "Red Hat Satellite 6 Activation Key"
action parameter query "KATELLO_CERT_RPM_URL" with description "Red Hat Satellite 6 Katello Cert RPM URL (e.g. http://sat6-rh7.example.com/pub/katello-ca-consumer-sat6-rh7.example.com-1.0-1.noarch.rpm )"
action parameter query "AUTO_ATTACH" with description "Auto attach subscriptions to this system? (y/n)" with default value "y"
parameter "LOG_DIR" = "{parent folder of parent folder of client folder of the current site}/EDRDeployData"
createfile until EOF
if [ ! -d "$2" ] ; then
mkdir -p "$2"
fi
rpm -Uvh '{parameter "KATELLO_CERT_RPM_URL" of action}' > "$2/register_satellite6.log" 2>&1
subscription-manager register --activationkey='{parameter "ACTIVATION_KEY" of action}' --org='{parameter "ORG" of action}' >> "$2/register_satellite6.log" 2>&1
if [ "$1" = "y" ] ; then
echo "Auto-attaching subscriptions" >> "$2/register_satellite6.log"
subscription-manager attach --auto >> "$2/register_satellite6.log" 2>&1
fi
EOF
wait bash __createfile {parameter "AUTO_ATTACH" of action} {parameter "LOG_DIR"}
continue if {exit code of action = 0}
delete __createfile
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
| Social Media: |

