This repository contains Ansible playbooks for configuring Cisco Intersight managed X-Series servers, when used as part of a Cisco FlashStack, to operate as a VMware Cloud Foundation Workload Domain. In addition, these playbooks can configure a set of vSAN-ready Cisco Intersight managed C-series servers to operate as the VCF management domain. This repository is offered as an additional deployment option to use Infrastructure as Code (IaC) to automate a large portion of the installation process, as opposed to the manual installation process outlined in the accompanying Cisco Validated Design (CVD) document. These playbooks can be used to setup various pools, policies, Server Profile Template, and to perform initial configuration of the ESXi hosts for deploying VCF using Cloud Builder. To run these playbooks, Cisco UCS C-Series servers should be connected via Cisco UCS Fabric Interconnects and managed using IMM as shown in the figure, and the Cisco UCS X-series blades should be configured and available as part of a Cisco FlashStack installation.
The Cisco Validated Design (CVD) deployment document which accompanies these playbooks is available here: https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/UCS_CVDs/flashstack_vcf.html
The playbooks in this repository perform following high level functions:
NOTE: The addition of UCS to Intersight Account or configuration of Domain Profile to setup UCS is not part of this repository and will have to be performed manually before executing the playbooks.
NOTE: The playbooks do not create an organization and assume an organization (default or otherwise) has already been setup under Intersight account. The organization name must be updated in group_vars/all.yml(org_name) for successful execuation of the playbooks.
/sbin/generate-certificates
/etc/init.d/hostd restart && /etc/init.d/vpxa restart
NOTE: An Ansible playbook regenerate_esxi_hosts_certs.yml has also been provided to re-generate the certificates.
The ESXi hosts are now ready for VCF cloud builder configuration.
To execute various ansible playbooks, a linux based system will need to be setup with Ansible and following packages:
To execute the playbooks against your Intersight account, you need to complete following additional steps of creating an API key and saving the Secret Key file: https://community.cisco.com/t5/data-center-and-cloud-documents/intersight-api-overview/ta-p/3651994
The <API_KEY_ID> and <SECRET_KEY_FILE> information is added to the group_vars/all.yml file. The SecretKey.txt file is typically copied to the same folder/directory where the Ansible Playbooks are cloned (alongside inventory file).
All the variables used in this framework are defined in the following locations:
To execute the playbooks, you will need to follow these steps:
ansible-playbook update_all_inventory.yml -i inventory
ansible-playbook create_pools.yml -i inventory
ansible-playbook create_server_policies.yml -i inventory
ansible-playbook create_server_profile_template.yml -i inventory
ansible-playbook prepare_esxi_hosts.yml -i inventory
ansible-playbook regenerate_esxi_hosts_certs.yml -i inventory
At this time, ESXi servers will be ready for VCF cloud builder to setup the management domain. Afterwards, VMware SDDC can be used to commission the workload domain hosts and create the workload domain. All of these steps can be found in the associated CVD document listed at the top of this page.
Owner
Contributors
Categories
Products
UCS ManagerNX-OSProgramming Languages
License
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community