adoption_osp_deploy
Deploy OSP 17.1 environment for adoption based on DTs.
Privilege escalation
become - Required in:
- login_registries: For running subscription manager if needed,
install packages and podman login as root.
- prepare_overcloud: For setting up repositories, installing packages,
create folders in /etc and running os-net-config.
- prepare_undercloud: For setting up repositories, installing packages,
create folders in /etc and running os-net-config.
Parameters
cifmw_adoption_osp_deploy_ntp_server: (String) NTP server to use in the 17.1 deployment. Defaults topool.ntp.orgcifmw_adoption_osp_deploy_repos: (List) List of 17.1 repos to enable. Defaults to[rhel-9-for-x86_64-baseos-eus-rpms, rhel-9-for-x86_64-appstream-eus-rpms, rhel-9-for-x86_64-highavailability-eus-rpms, openstack-17.1-for-rhel-9-x86_64-rpms, fast-datapath-for-rhel-9-x86_64-rpms, rhceph-6-tools-for-rhel-9-x86_64-rpms]cifmw_adoption_osp_deploy_stopper: (String) Step at which to stop the run. SeeBreak pointsection below for possible values.cifmw_adoption_osp_deploy_scenario: (Dict) Define the parameter to configure the OSP17.1 deployment.cifmw_adoption_osp_deploy_adoption_vars_exclude_nets: (List) Name of networks in the ci-framework Network Mapper data to exclude when generating the adoption variables. By default it excludes the ci-framework “public” network (ocpbm).cifmw_adoption_osp_deploy_overcloud_extra_args: (String) The content of a file which will be used with the -e option in the overcloud deploy command. This is useful to specify private/restricted parameters.cifmw_adoption_osp_deploy_stack_args_remove: (List) List of CLI argument strings to remove from the scenario’sstack.argsbefore running overcloud deploy. Each entry must exactly match an element instack.args. Defaults to[].cifmw_adoption_osp_deploy_stack_args_add: (List) List of CLI argument strings to append to the scenario’sstack.argsafter removals are applied. Defaults to[].cifmw_adoption_osp_deploy_bgp: (Boolean) Enable BGP support for the OSP deployment. When enabled, uses BGP-specific network configurations and templates. Defaults tofalse.cifmw_adoption_osp_deploy_freeipa_admin_password: (String) FreeIPA server admin password.
Break point
You can also stop the automated deploy by setting
cifmw_adoption_osp_deploy_stopper
parameter to a specific value.
Break point names are built using either undercloud or overcloud,
and the code currently supports the following seven different stoppers:
Before calling pre undercloud hook:
before_pre_hook_undercloudBefore deploying undercloud:
before_deploy_undercloudAfter deploying undercloud:
after_deploy_undercloudAfter calling post undercloud hook:
after_post_hook_undercloudBefore calling pre overcloud hook:
before_pre_hook_overcloudBefore deploying overcloud:
before_deploy_overcloudAfter deploying overcloud:
after_deploy_overcloud
Examples
- name: Deploy source osp environment
vars:
cifmw_adoption_osp_deploy_scenario:
undercloud:
config:
- section: DEFAULT
option: undercloud_hostname
value: undercloud.localdomain
stacks:
name: overcloud
ansible.builtin.import_role:
name: "adoption_osp_deploy"