Skip to content

Commit

Permalink
update preserve-rhsm-proxy docs (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored Jan 25, 2019
1 parent c70e84b commit 28e88d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,21 @@ When registering a client, it is sometimes desired to ignore registration failur
--ignore-registration-failures
~~~

### Preserving RHSM Proxy Settings

When moving clients from RHSM to Katello or a different RHSM provider, the proxy settings in `/etc/rhsm/rhsm.conf` might get lost. Using `--preserve-rhsm-proxy` you can ensure that the old settings will be restored for the new configuration.


~~~
./bootstrap.py -l admin \
-s foreman.example.com \
-o "Red Hat" \
-L RDU \
-g "RHEL7/Crash" \
-a ak-Reg_To_Crash \
--preserve-rhsm-proxy
~~~

# Help / Available options:

~~~
Expand Down Expand Up @@ -684,6 +699,9 @@ Options:
Continue running even if registration via
subscription-manager/rhn-migrate-classic-to-rhsm
returns a non-zero return code.
--preserve-rhsm-proxy
Preserve proxy settings in /etc/rhsm/rhsm.conf when
migrating RHSM -> RHSM
~~~

# Additional Notes
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ def exec_service(service, command, failonerror=True):
parser.add_option("-t", "--timeout", dest="timeout", type="int", help="Timeout (in seconds) for API calls and subscription-manager registration. Defaults to %default", metavar="timeout", default=900)
parser.add_option("-c", "--comment", dest="comment", help="Add a host comment")
parser.add_option("--ignore-registration-failures", dest="ignore_registration_failures", action="store_true", help="Continue running even if registration via subscription-manager/rhn-migrate-classic-to-rhsm returns a non-zero return code.")
parser.add_option("--preserve-rhsm-proxy", dest="preserve_rhsm_proxy", help="Preserve proxy settings in /etc/rhsm/rhsm.conf when migrating RHSM -> RHSM")
parser.add_option("--preserve-rhsm-proxy", dest="preserve_rhsm_proxy", action="store_true", help="Preserve proxy settings in /etc/rhsm/rhsm.conf when migrating RHSM -> RHSM")
(options, args) = parser.parse_args()

if options.no_foreman:
Expand Down

0 comments on commit 28e88d8

Please sign in to comment.