This repository contains Ansible playbooks to configure all the components of FlashStack including:
• Cisco UCS in Intersight Managed Mode (IMM)
• Cisco Nexus and MDS Switches
• Pure FlashArray
• VMware ESXi and VMware vCenter.
This repository can be used to automate the Virtual Server Infrastrcutre Deployment incorporating the Cisco Unified Computing System™ (Cisco UCS®) X-Series modular platform, Cisco Unified Computing System™ 5th Generation Fabric Technology (5th Generation Fabric Interconnects 6536, 5th Generation Cisco UCS Virtual Interface Card and X9108-IFM-100G IFM) into the FlashStack Virtual Server Infrastructure (VSI) to enable end-to-end 100G Ethernet and 32G Fibre Channel.
Details will be covered in the upcoming Cisco Validated Design document.
The CVD lays out the complete process for configuring the FlashStack using Ansible. Since these playbooks are intended to save time in setting up a working FlashStack, a complete FlashStack as shown below is needed to execute the playbooks.
IP connectivity | FC connectivity |
---|---|
To execute various ansible playbooks, a Linux based system will need to be setup as described in the CVD with the packages listed at the following pages:
• Cisco Intersight: https://galaxy.ansible.com/cisco/intersight
• Cisco NxOS: https://galaxy.ansible.com/cisco/nxos
• Pure FlashArray: https://galaxy.ansible.com/purestorage/flasharray
• VMware: https://galaxy.ansible.com/community/vmware
You might already have this collection installed.
ansible-galaxy collection list
ansible-galaxy collection install cisco.intersight
(For Intersight Collection) ansible-galaxy collection install cisco.nxos
(For Cisco NX-OS collection) ansible-galaxy collection install purestorage.flasharray
(Pure Storage FlashArray Collection) ansible-galaxy collection install community.vmware
(For VMWare Ansible Collection) The Intersight playbooks in this repository perform following functions:
After successfully executing the playbooks, one or many server profiles can easily derived and attached to the compute node from Intersight dashboard.
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.
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 default Secrets_File value in all.yml assumes Secrets_File was copied to the same folder/directory where Ansible Playbooks were cloned (alongside inventory file).
All the variables used in this framework are defined in the following locations:
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 ./Setup_Nexus.yml -i inventory
ansible-playbook ./Setup_MDS.yml -i inventory
ansible-playbook ./Setup_Pure.yml -i inventory
ansible-playbook ./Setup_ESXi.yml -i inventory
ansible-playbook ./Setup_vCenter.yml -i inventory
Execution of first three playbooks in these repositories set up Server Profile Template in Intersight. After successfully executing the playbooks, one or more server profiles can easily derived and attached to the compute node from Intersight dashboard. KVM mounted DVD option is available to install OS to these newly derived servers.
Owner
Contributors
Categories
Products
IntersightUCS ManagerNX-OSProgramming Languages
PythonLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community