This repository contains Ansible playbooks for configuring Cisco Intersight managed C-Series (tested Cisco UCS C240 M5) servers. This repository aligns with the following design guide: https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/UCS_CVDs/flexpod_vcf_design.html. This repository 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.
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 Secrets_File: https://community.cisco.com/t5/data-center-and-cloud-documents/intersight-api-overview/ta-p/3651994
The API key and Secrets_Filename information is added to the group_vars/all.yml. The Secrets_File value can be updated in all.yml. SecretKey.txt file is typically copied to the same folder/directory where 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 ./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.
Owner
Contributors
Categories
Products
IntersightUCS ManagerProgramming Languages
License
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community