A group of ansible scripts produced for an account in DXC.technology for OneView in order to configure the HPE Synergy Server
In this Readme file, it states what is required, for a further indepth explanation and a step by step on specific tasks (SDKs etc), please go to the Wiki
Firstly, you will need to install the following:
- OpenSSH
- Ansible
- Python
- Pip
- Unzip
- HP OneView SDK
- HP ICSP
- HP iLO Once all these have been installed, the environment variables will need to be set to point the Ansible and Python env vars to the new SDK packages
This information is very important when it comes to working with Ansible. The information can be found here: Ansible Structure
Something also to take note, Ansible is very 'white-space' sensitive, which means if something is slightly out of line then the playbook will not execute. So to over come this, I used the tool Atom which eliminated that issue but there are others out there also...like Microsoft Visual Studio Code
I have a set of executable Ansible playbooks here, however that is not the full extent of what I have produced. So if you would like to create a new playbook, its in the same format as these however the role will be different. It will require the role name from the 'roles' folder:
---
- hosts: all
connection: local
roles:
- {role: NEW_ROLE_NAME}
- Appliance Time and Locale Configuration
- Attach ISO disk to ILO and server bay
- Create a basic volume disk (100Gb)
- Create a server profile with ISO attached
- Create a large amount of networks, a mixture of Ethernet and Fibre Channel
- Create a volume disk template for License Cluster
- Create ESXi 6.5 Server Profile with Image Streamer
- Create Enclosure Group
- Create Enhanced volume disk template (20Gb)
- Create Ethernet Network
- Create Ethernet Network associated to IPv4 subnet
- Create Ethernet network in bulk with same suffix
- Create Fibre Channel Network
- Create Full Enclosure Provision
- Create ICsp Server Profile, Server and Deploy OS
- Create ICsp Server
- Create Image Streamer Build Plan
- Create Image Streamer Deployment Plan
- Create Image Streamer Golden Image
- Create Image Streamer OpenShift InfraNode Profile
- Create Image Streamer OpenShift Master Profile
- Create Image Streamer OpenShift Node 1 Profile
- Create Image Streamer OpenShift Node 2 Profile
- Create Image Streamer OpenShift RHEL 7.3 Profile
- Create IPv4 Ranges
- Create IPv4 Subnet
- Create IPv4 Subnet & Ranges
- Create Logical Enclosure
- Create Logical Interconnect Group
- Create Network Sets
- Create Network Template for Customer VLAN203
- Create Network Template for License clusters with Trunked VLANs
- Create Private Storage Volume
- Create Profile with Template and Deployment Plan
- Create SAN Manager
- Create Server Profile Template
- Create Server Profile from Private SAN
- Create Server Profile via Template
- Create Server Profile with Local Storage
- Create Shareable Volume
- Create Standard Disk Template
- Create Storage Systems with Pools
- Create Storage Volume Template
- Create User
- Update Ethernet Network with Associating a Subnet
- Update Ethernet Network with Removing Subnet
- Update Profile with SAN
- Update Subnet with new Domain
- Update User Password
- Gather Appliance Time and Locale Configuration
- Gather Enclosure Facts
- Gather Enclosure Group URIs
- Gather Enclosure Groups
- Gather Ethernet Networks
- Gather Fibre Channel Networks
- Gather Firmware Drivers
- Gather Hardware Facts
- Gather Image Streamer Artifact Bundle
- Gather Image Streamer Build Plans
- Gather Image Streamer Deployment Plan
- Gather Image Streamer Golden Image
- Gather Image Streamer OS Volumes
- Gather Image Streamer Plan Scripts
- Gather Logical Interconnect Group
- Gather Profile Template
- Gather SAN URIs
- Gather SANs
- Gather Server Profile from Bay
- Gather Server Profiles
- Gather Storage Pools
- Gather Users
- Gather Volume Template
- Gather Volumes
- Gather ALL Network URIs
- Download Artifact Bundle
- Download and use SPP file
- Ensure IPv4 Range is Disabled
- Ensure IPv4 Range is Enabled
- ICsp OS Deployment
- Image Streamer Artifact Bundle Download and Upload
- Image Streamer Upload & Extract Artifact Bundle
- Momentary Press Power Off Server
- Momentary Press Power On Server
- Press and Hold Power Off Server
- Delete Enclosure Groups
- Delete Ethernet Network
- Delete Fibre Channel Network
- Delete IPv4 Range
- Delete IPv4 Subnet
- Delete IPv4 Subnet & Range
- Delete Image Streamer Artifact Bundle
- Delete Image Streamer Build Plan
- Delete Image Streamer Deployment Plan
- Delete Image Streamer Golden Image
- Delete Logical Interconnect
- Delete Network Sets
- Delete Server Profile
- Delete Server Profile Template
- Delete Storage Volume
- Delete Storage Volume Template
- Delete User