Satellite - bootstrap without upgrading
Hello all,
we have just installed Satellite server and now I am playing with bootstrap script. Basically I want to re-register hosts from RHN to our new internal Satellite server. I have created the bootstrap.sh script but when I run it on a testing host it is trying (besides registering) to upgrade the node. I just want to register without upgrading. Is it possible using bootstrap scripts ?
This is the output:
...
REGISTRATION
------------
* registering
*** this system should now be registered, please verify ***
* setting permissions to allow configuration management
NOTE: use an activation key to subscribe to the tools
channel and yum upgrade rhncfg-actions
* setting permissions to allow remote commands
NOTE: use an activation key to subscribe to the tools
channel and yum upgrade rhncfg-actions
OTHER ACTIONS
------------------------------------------------------
yum -y upgrade yum yum-rhn-plugin; rhn-profile-sync; yum upgrade (conditional)
but any post configuration action can be added here.
------------------------------------------------------
* completely updating the box
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.2.29-22.el6 will be updated
...
Responses
Hello,
By-default the flag to update the system is enabled. If you wish to just register the system and not update the system then while creating the bootstrap script you can make use of --no-up2date flag.
Example:
rhn-bootstrap --no-up2date
If you wish to modify the existing bootstrap scripts and disable to auto-update of system through the bootstrap script then you can edit the bootstrap script and change :
FULLY_UPDATE_THIS_BOX=1
to
FULLY_UPDATE_THIS_BOX=0
This will not update the system.
Let me know if this helps.
Paresh
Hello,
Unfortunately no. The option to disable auto-update is not available in web interface. Few other options which are available with command line are not available with the web interface (Example: activation key, no up2date etc). So once you create the bootstrap script you will have to modify it manually and update it as per your requirement.
If you wish you could raise a Request Feature Enhancement by opening a Support Case and giving out the details. Our team could check it further with Engineering to see if it can be implemented.
Paresh
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
