Running the installer unattended

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

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

  1. Confirm that every value in the required values table is present in a configuration file or an environment variable. For the table, see Values to collect before you start.
  2. Run the installer with the unattended option.
    sudo --preserve-env=LCM_SECRET_OCI_REGISTRY_TOKEN,\
    LCM_SECRET_OCI_SITE_REGISTRY_TOKEN,\
    LCM_SECRET_ROUTE53_AWS_ACCESS_KEY_ID,\
    LCM_SECRET_ROUTE53_AWS_SECRET_ACCESS_KEY \
      podman run --rm --name ccc-lcm --network host \
      -v /srv/ccc-lcm:/opt/ccc-lcm \
      -v /root/.ssh:/root/.ssh:ro \
      -e LCM_SECRET_OCI_REGISTRY_TOKEN \
      -e LCM_SECRET_OCI_SITE_REGISTRY_TOKEN \
      -e LCM_SECRET_ROUTE53_AWS_ACCESS_KEY_ID \
      -e LCM_SECRET_ROUTE53_AWS_SECRET_ACCESS_KEY \
      registry-host/ccc/cloudera/ccc-lcm:tag \
      --site-id site-id \
      --config configs/inventory.yaml \
      --config configs/site.yaml \
      --profile-mode merge \
      --unattended
  3. Follow the log file that the run prints at startup, in a second terminal.
    tail -f /srv/ccc-lcm/logs/installer-runtime-log-*.log
  4. Check the exit code when the run finishes.

An unattended run requires the site identifier. Every value listed in the required values table must be present before any stage starts, and a missing value causes an immediate exit that names what is absent.