@@ -2170,102 +2170,68 @@ ifdef::openshift-origin[]
2170
2170
*openshift/origin-ansible*
2171
2171
endif::[]
2172
2172
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:
2193
2181
+
2194
2182
----
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 \
2208
2184
--storage=ostree \
2209
- --name=openshift-installer \//<1>
2210
- --set INVENTORY_FILE=/path/to/inventory \//<2>
2185
+ --set INVENTORY_FILE=/path/to/inventory \//<1>
2211
2186
ifdef::openshift-enterprise[]
2212
- docker: registry.access.redhat.com/openshift3/ose-ansible:v3.6
2187
+ registry.access.redhat.com/openshift3/ose-ansible:v3.6
2213
2188
endif::[]
2214
2189
ifdef::openshift-origin[]
2215
- docker:docker .io/openshift/origin-ansible:v3.6
2190
+ docker.io/openshift/origin-ansible:v3.6
2216
2191
endif::[]
2217
2192
----
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.
2223
2194
+
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.
2227
2200
+
2228
2201
If for any reason the installation fails, before re-running the installer, see
2229
2202
xref:installer-known-issues[Known Issues] to check for any specific instructions
2230
2203
or workarounds.
2231
2204
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
-
2240
2205
[[running-the-advanced-installation-system-container-other-playbooks]]
2241
2206
==== Running Other Playbooks
2242
2207
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.
2249
2215
2250
2216
For example:
2251
2217
2252
2218
----
2253
- $ atomic install --system \
2219
+ # atomic install --system \
2254
2220
--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 >
2258
2224
ifdef::openshift-enterprise[]
2259
- docker: registry.access.redhat.com/openshift3/ose-ansible:v3.6
2225
+ registry.access.redhat.com/openshift3/ose-ansible:v3.6
2260
2226
endif::[]
2261
2227
ifdef::openshift-origin[]
2262
- docker:docker .io/openshift/origin-ansible:v3.6
2228
+ docker.io/openshift/origin-ansible:v3.6
2263
2229
endif::[]
2264
2230
----
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` .
2269
2235
2270
2236
[[running-the-advanced-installation-tsb]]
2271
2237
=== Deploying the Template Service Broker
0 commit comments