Register Endpoint to Red Hat Satellite 6
Log In or Register to download the BES file, and more.

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


Property Details

ID23384
StatusBeta - Preliminary testing ready for more
TitleRegister Endpoint to Red Hat Satellite 6
DomainBESC
CategoryConfiguration
SourceBigFix
Source Release Date2/3/2017 12:00:00 AM
Keywordsredhat satellite
Is TaskTrue
Added by on 2/2/2017 11:12:30 PM
Last Modified by on 2/2/2017 11:12:30 PM
Counters 6582 Views / 15 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 1 fixlet   * Results in a true/false
Show indented relevance
(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:
Share this page on Yammer

Comments

Log In or Register to leave comments!