theforeman.operations.installer
Run the foreman-installer
Role Variables
Required:
foreman_installer_scenario
: The installer scenario to run, this is required to be set. You can find the list of all scenario available by runningforeman-installer --list-scenarios
command.
Optional:
foreman_installer_package
: Package containing the installer scenarioforeman_installer_options
: Array of options to pass to the installerforeman_installer_verbose
: Enables verbose output mode in the installerforeman_installer_no_colors
: Disables color output from the installerforeman_installer_command
: Installer command to run, can be used by derivative projects to specify a branded commandforeman_installer_locale
: Locale to run the installer with, this must not beC
, defaults toen_US.UTF-8
foreman_installer_timeout
: Time allowed for installer to run before it is assumed failed, defaults to 30m
Example Playbooks
Run the installer with the katello
scenario, setting the initial organization and admin password:
- hosts: target-host
roles:
- role: theforeman.operations.installer
vars:
foreman_installer_scenario: katello
foreman_installer_package: foreman-installer-katello
foreman_installer_options:
- '--foreman-initial-organization "ACME Inc"'
- '--foreman-initial-admin-password changeme'