---
- name: Get FlashArray summary info
hosts: localhost
gather_facts: false
tasks:
- name: Get FlashArray system info
purestorage.flasharray.purefa_info:
gather_subset:
This guide walks you through setting up Morpheus 8 to provision virtual machines both on-prem (vSphere, KVM, Hyper-V) and in the cloud (AWS, Azure, etc.), and to automatically configure them using Ansible (Standalone mode) running from the Morpheus appliance.
Ensure your VM image (on-prem or cloud) includes:
Building a RHEL 9 ISO image using Packer 1.12 on RHEL 8 requires multiple steps. This guide will take you from installing dependencies to creating the ISO with Packer. | |
--- | |
Step 1: Install Required Packages | |
Ensure your RHEL 8 system has the necessary tools installed. | |
# Enable required repositories |
- Retrieve Security Groups via AWS CLI Get the Security Groups Attached to an Instance Run:
aws ec2 describe-instances --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --query "Reservations[].Instances[].SecurityGroups" --output json
This will return something like:
The issue you're encountering is likely due to the use of the MBR (Master Boot Record) partitioning scheme. MBR has a partition size limitation of 2TB. If you have disks larger than 2TB and you want to use the entire space in a single partition, you should use the GPT (GUID Partition Table) partitioning scheme instead of MBR.
To use the full capacity of a 3TB (or larger) disk on RHEL6, you'd want to use the GPT format. Here's how you can create a GPT partition:
-
Backup any data: Before making any changes to the disk, ensure you've backed up any data on it.
-
Install
gdisk
: Thegdisk
utility is a version offdisk
for GPT. It might not be installed by default:
bash
- ISO Images: Ensure you have the ISO images for RHEL9 and OEL9 downloaded.
- vSphere Client: Have the vSphere Client open and connected to your vCenter or ESXi host.
- Upload the RHEL9 and OEL9 ISOs to a datastore accessible by the ESXi hosts.
--- | |
- name: Manage iptables on RHEL6 or OEL6 | |
hosts: your_target_hosts # You need to replace this with your actual target host group or host. | |
become: true | |
gather_facts: true # This is required to collect facts about the target host. | |
tasks: | |
- name: Check if the system is RHEL6 or OEL6 | |
assert: | |
that: |
Building VMs using Ansible and the VMware API can be a streamlined process, but it does come with some considerations. Here's a more detailed guide:
You'll want to make use of the Ansible vmware_guest
module, which can create, clone, or reconfigure VMware VMs through vCenter.
- Inventory:
Hopefully this is what you need...
To use this script, you'll need to replace your_company_name
with the name of the company you're searching for, and your_github_api_token
with a valid GitHub API token that has the necessary permissions to access user data. You can run the script from the command line or in a Python development environment, and it will print a list of usernames associated with the specified company on GitHub.
To use this script with the company_name argument, you can run the command like this:
python github_users.py -c teslamotors