Chapter 14. Provisioning physical servers using Ansible playbooks
In CloudForms, XClarity Administrator configuration patterns can be used to provision physical servers through the use of an Ansible playbook. Configuration patterns act as templates for configuring logical storage, I/O adapters, boot order, and other baseboard management controller and Unified Extensible Firmware Interface (UEFI) settings.
Note: An Ansible Tower provider that points to an Ansible Tower instance must be added to CloudForms. See the Adding an Ansible Tower Provider section in the CloudForms Managing Providers documentation.
- Within Ansible Tower, create a job template for the config.yml playbook. Specify apply_configpatterns as the job tag and any extra variables that are required by the playbook. Ensure that the option to prompt on launch is enabled. You can use this playbook to apply a configuration pattern to a physical server. You can get this playbook from the web at https://galaxy.ansible.com/lenovo/lxca-config.
- Follow the steps that are described in the Executing an Ansible Tower Job Template from a Service Catalog section in the CloudForms Managing Providers documentation. Use the job template that you created in the previous step.