Questo contenuto non è disponibile nella lingua selezionata.
12.6. Using Multiple OpenShift Configuration Files
The OpenShift Enterprise interactive setup wizard creates a new
express.conf configuration file in the ~/.openshift directory with the specified user and server settings. Multiple configuration files can be created, but you must then use the --config option with the client tools to select the appropriate configuration file.
Procedure 12.2. To Create a New Configuration File:
- Run
rhc setupwith the--configcommand to create a new configuration file:rhc setup --config=~/.openshift/bob.conf
# rhc setup --config=~/.openshift/bob.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify that you can connect to OpenShift using different configuration files. Run an
rhccommand without specifying the configuration file. In this example, the domain for the account configured in theexpress.conffile is displayed.rhc domain show
# rhc domain showCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the
rhccommand with--configoption. In this example, the domain for the account configured in thebob.conffile is displayed.rhc domain show --config=~/.openshift/bob.conf
# rhc domain show --config=~/.openshift/bob.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
To switch between different OpenShift environments frequently, see Section 12.7, “Switching Between Multiple OpenShift Environments”.