This repository contains the Ansible automation for provisioning the on-prem data center infrastructure in the above Cisco Validated Design. The design and deployment guide for the CVD is available at: https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/UCS_CVDs/hx_rh_ocp_hybrid_cloud.html
The end-to-end topology for the solution is shown in the figure below:
The Ansible playbooks provided in this repo will automate the on-prem compute, network and virtualization layer infrastructure in the solution. The playbooks will do the day-2 configuration necessary to support a new Application HyperFlex VSI and day0-1 provision of the HyperFlex VSI cluster.
The playbooks, inventory files and variables for provisioning the on-prem infrastructure in the solution topology are located in the following files and directores:
- Setup an Ansible Control Node - you will use this workstation to run the ansible playbooks
- From a terminal window, navigate to the directory where you'd like to clone the above GitHub repo to. The playbooks are located in the https://github.com/ucs-compute-solutions/Hybrid-Cloud repository.
- From the terminal window, run the following command to clone the repo.
https://github.com/ucs-compute-solutions/Hybrid-Cloud.git
- Navigate to the CVD_HC-OCP-HXFI directory. You will find the playbooks for HyperFlex VSI playbooks and Cisco ACI in the in the compute and network sub-directories.
- Update the inventory file and variables file shown in the figure above with networking information for your environment.
- Navigate to the network sub-directory and execute the main network playbook as shown below:
CVD_HC-OCP-HXFI $ ansible-playbook network/00_main_deploy_dc-fabric.yml -i inventory/inventory_main.ini
- Update the inventory file and variables file shown in the figure above with HyperFlex VSI information for your environment.
- Navigate to the compute sub-directory and execute the main compute playbook as shown below:
CVD_HC-OCP-HXFI $ ansible-playbook compute/00_main_deploy_hx-std.yml -i inventory/inventory_main.ini