Skip to content

Commit ace08df

Browse files
committed
advanced_install: installer as system container
Update, simplify, and also note some things that were not apparent.
1 parent 0bed7e4 commit ace08df

File tree

1 file changed

+35
-69
lines changed

1 file changed

+35
-69
lines changed

install_config/install/advanced_install.adoc

+35-69
Original file line numberDiff line numberDiff line change
@@ -2170,102 +2170,68 @@ ifdef::openshift-origin[]
21702170
*openshift/origin-ansible*
21712171
endif::[]
21722172
image is a containerized version of the {product-title} installer that runs as a
2173-
link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/managing_containers/running_system_containers[system container]. System containers are stored and run outside of the traditional
2174-
*docker* service. Functionally, using the containerized installer is the same as
2175-
using the traditional RPM-based installer, except it is running in a
2176-
containerized environment instead of directly on the host.
2177-
2178-
. Use the Docker CLI to pull the image locally:
2179-
+
2180-
----
2181-
ifdef::openshift-enterprise[]
2182-
$ docker pull registry.access.redhat.com/openshift3/ose-ansible:v3.6
2183-
endif::[]
2184-
ifdef::openshift-origin[]
2185-
$ docker pull docker.io/openshift/origin-ansible:v3.6
2186-
endif::[]
2187-
----
2188-
2189-
. The installer system container must be stored in
2190-
link:https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/content_management_guide/managing_ostree_content[OSTree]
2191-
instead of defaulting to *docker* daemon storage. Use the Atomic CLI to import
2192-
the installer image from the local *docker* engine to OSTree storage:
2173+
link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/managing_containers/running_system_containers[system container].
2174+
System containers are stored and run outside of the traditional
2175+
*docker* service. The installer image provides the same functionality
2176+
as the traditional RPM-based installer, but it runs in a containerized
2177+
environment that provides all of its dependencies rather than being
2178+
installed directly on the host.
2179+
2180+
. As the `root` user, use the Atomic CLI to run the installer as a run-once system container:
21932181
+
21942182
----
2195-
$ atomic pull --storage ostree \
2196-
ifdef::openshift-enterprise[]
2197-
docker:registry.access.redhat.com/openshift3/ose-ansible:v3.6
2198-
endif::[]
2199-
ifdef::openshift-origin[]
2200-
docker:docker.io/openshift/origin-ansible:v3.6
2201-
endif::[]
2202-
----
2203-
2204-
. Install the system container so it is set up as a systemd service:
2205-
+
2206-
----
2207-
$ atomic install --system \
2183+
# atomic install --system \
22082184
--storage=ostree \
2209-
--name=openshift-installer \//<1>
2210-
--set INVENTORY_FILE=/path/to/inventory \//<2>
2185+
--set INVENTORY_FILE=/path/to/inventory \//<1>
22112186
ifdef::openshift-enterprise[]
2212-
docker:registry.access.redhat.com/openshift3/ose-ansible:v3.6
2187+
registry.access.redhat.com/openshift3/ose-ansible:v3.6
22132188
endif::[]
22142189
ifdef::openshift-origin[]
2215-
docker:docker.io/openshift/origin-ansible:v3.6
2190+
docker.io/openshift/origin-ansible:v3.6
22162191
endif::[]
22172192
----
2218-
<1> Sets the name for the systemd service.
2219-
<2> Specify the location for your inventory file on your local workstation.
2220-
2221-
. Use the `systemctl` command to start the installer service as you would any
2222-
other systemd service. This command initiates the cluster installation:
2193+
<1> Specify the location on the local host for your inventory file.
22232194
+
2224-
----
2225-
$ systemctl start openshift-installer
2226-
----
2195+
This command initiates the cluster installation using the inventory file specified and the `root` user's
2196+
SSH configuration, logging to the terminal as well as *_/var/log/ansible.log_*. The first time this is executed, the image is imported into
2197+
link:https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/content_management_guide/managing_ostree_content[OSTree]
2198+
storage (system containers use this instead of *docker* daemon storage).
2199+
Later executions re-use the stored image.
22272200
+
22282201
If for any reason the installation fails, before re-running the installer, see
22292202
xref:installer-known-issues[Known Issues] to check for any specific instructions
22302203
or workarounds.
22312204

2232-
. After the installation completes, you can uninstall the system container if you want. However, if you need to run the installer again to run any other playbooks later, you would have to follow this procedure again.
2233-
+
2234-
To uninstall the system container:
2235-
+
2236-
----
2237-
$ atomic uninstall openshift-installer
2238-
----
2239-
22402205
[[running-the-advanced-installation-system-container-other-playbooks]]
22412206
==== Running Other Playbooks
22422207

2243-
After you have completed the cluster installation, if you want to later run any
2244-
other playbooks using the containerized installer (for example, cluster upgrade
2245-
playbooks), you can use the `PLAYBOOK_FILE` environment variable. The default
2246-
value is `playbooks/byo/config.yml`, which is the main cluster installation
2247-
playbook, but you can set it to the path of another playbook inside the
2248-
container.
2208+
To run any other playbooks (for example, to run the
2209+
xref:configuring-cluster-pre-install-checks[pre-install checks]
2210+
before proceeding to install) using the containerized installer, you can
2211+
specify a playbook with the `PLAYBOOK_FILE` environment variable. The
2212+
default value is *_/usr/share/ansible/openshift-ansible/playbooks/byo/config.yml_*, which is the main cluster
2213+
installation playbook, but you can set it to the path of another playbook
2214+
inside the container.
22492215

22502216
For example:
22512217

22522218
----
2253-
$ atomic install --system \
2219+
# atomic install --system \
22542220
--storage=ostree \
2255-
--name=openshift-installer \
2256-
--set INVENTORY_FILE=/etc/ansible/hosts \
2257-
--set PLAYBOOK_FILE=playbooks/byo/openshift-cluster/upgrades/v3_6/upgrade.yml \//<1>
2221+
--set INVENTORY_FILE=/path/to/inventory \
2222+
--set PLAYBOOK_FILE=/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-checks/pre-install.yml \//<1>
2223+
--set OPTS="-v" \//<2>
22582224
ifdef::openshift-enterprise[]
2259-
docker:registry.access.redhat.com/openshift3/ose-ansible:v3.6
2225+
registry.access.redhat.com/openshift3/ose-ansible:v3.6
22602226
endif::[]
22612227
ifdef::openshift-origin[]
2262-
docker:docker.io/openshift/origin-ansible:v3.6
2228+
docker.io/openshift/origin-ansible:v3.6
22632229
endif::[]
22642230
----
2265-
<1> Set `PLAYBOOK_FILE` to the relative path of the playbook starting at the
2266-
*_playbooks/_* directory. Playbooks mentioned elsewhere in {product-title}
2267-
documentation assume use of the RPM-based installer, so use this relative path
2268-
instead when using the containerized installer.
2231+
<1> Set `PLAYBOOK_FILE` to the full path of the playbook starting at the
2232+
*_playbooks/_* directory. Playbooks are located in the same locations as with
2233+
the RPM-based installer.
2234+
<2> Set `OPTS` to add command line options to `ansible-playbook`.
22692235

22702236
[[running-the-advanced-installation-tsb]]
22712237
=== Deploying the Template Service Broker

0 commit comments

Comments
 (0)