Running the installer unattended

Run the installer without the terminal user interface for scripted and repeatable deployments, taking every value from configuration files and the environment.

An unattended run skips the terminal user interface, takes every value from the configuration files and the environment, and exits with a machine-readable code. Use it for scripted and repeatable deployments.

  • Every value in the Values to collect before you start table is present in a configuration file or an environment variable. A missing value causes an immediate exit that names what is absent.
  • You know the site identifier, which an unattended run requires.
  1. Run the installer with the unattended option.
    sudo --preserve-env=LCM_SECRET_OCI_REGISTRY_TOKEN,\
    LCM_SECRET_OCI_SITE_REGISTRY_TOKEN,\
    LCM_SECRET_VALIDATION_OS_PASSWORD \
    podman run --rm --name ccc-lcm --network host \
      -v /srv/ccc-lcm:/opt/ccc-lcm \
      -v /root/.ssh:/root/.ssh:ro \
      -v /etc/ssl/certs:/etc/ssl/certs:ro \
      -e LCM_SECRET_OCI_REGISTRY_TOKEN \
      -e LCM_SECRET_OCI_SITE_REGISTRY_TOKEN \
      -e LCM_SECRET_VALIDATION_OS_PASSWORD \
      <registry-host>/ccc/cloudera/ccc-lcm:<lcm-tag> \
      --site-id <site-id> \
      --config configs/inventory.yaml \
      --config configs/site.yaml \
      --profile-mode merge \
      --unattended
  2. In a second terminal, follow the log file that the run prints at startup.
    tail -f /srv/ccc-lcm/logs/installer-runtime-log-*.log
  3. When the run finishes, check the exit code.

The run prints one line per stage and exits with a code that reports the outcome. For details, see Run output and logging and Exit codes.