In a scenario where the infrastructure is managed via source code management (SCM), resources and nodes would be stored in separate variable files. Playbooks will use the -e flag to provide "extra" variables to make the playbooks reusable for different nodes and storage resources. In this series of playbooks the variables will be stored with the nodes in the inventory groups. There are many different ways to write inventory files (classic. We’re now ready to create an inventory and start writing playbooks to manage storage resources. $ ansible-galaxy collection install hpe.nimble Next, use ansible-galaxy to install the HPE Nimble Storage Content Collection for Ansible. Let’s begin with installing Ansible and the required HPE Nimble Storage SDK for Python using pip. Privileges are needed on managed hosts where we want to attach storage. No special privileges are needed on the Ansible host. Note: All examples listed below are available in this GitHub repo (change directory to ansible/introduction). In this first installment, we’ll cover basic volume provisioning, snapshotting, cloning, inspecting, mutations and ultimately decommissioning volumes. Expect a series of blog posts over the coming months to cover more use cases. Since the collection contains more than a whopping twenty two modules, one blog post won’t be able to cover the entire suite. These requirements are also listed with the modules' documentation. NimbleOS 5.0 or newer is required on the array. We’ll also assume that iSCSI, multipathing and SAN connectivity is established between the SAN hosts and the HPE Nimble Storage array. Since an Ansible collection is a fairly new construct in the Ansible universe, version 2.9 is required, along with Python 3.6 or newer for the HPE Nimble Storage SDK for Python (which the Ansible modules rely on). There’s one HPE Nimble Storage array (nva) in the environment. In the following examples there is one node acting as the Ansible management host (node21) and there are two nodes (node22 and node23) acting as iSCSI SAN hosts. The modules have not yet been merged into the official Collection Index and documentation is provided from the GitHub repo as a temporary solution. All modules are documented per Ansible community standards.
0 Comments
Leave a Reply. |