RedHatOfficial/ansible-cloud_utils

Name: ansible-cloud_utils

Owner: Red Hat

Description: Ansible utilities for performing operations against public and private "clouds".

Created: 2018-01-28 22:42:46.0

Updated: 2018-04-25 17:29:11.0

Pushed: 2018-04-25 17:29:10.0

Homepage: null

Size: 35

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ansible-cloud_utils

Ansible utilities for performing operations against public and private “clouds”.

Playbooks

Playbooks provided by this project.

configure_vm_network_and_ip.yml

Configures the virtualization provider network and IP for given hosts. This is useful if need migrate a VM from one vlan/subnet to another vlan/subnet by updating both the virtualization provider and destination host.

The concept is that this playbook is cloud provider agnostic and can figure out how to move a VM from one network to another on any cloud provider, staying on that same provider, based on gathering facts about the VM. Though currently it has only been tested and written for a couple providers, as need arises for more providers the playbook can be easly extended to handle more.

Tested With Assumptions Options

| parameter | required | default | choices | comments |——————————-|————–|——————————–|———————————————–|——————————————— | vm_network_ip4 | yes | | | IP4 address to set for the VM | vm_network_ip4_netmask_prefix | yes | | | IP4 address netmask prefex to set for the VM | vm_network_gw4 | yes | | | IP4 gateway to set for the VM | vm_network_dns4 | no | | | List of IP4 DNS hosts to set for the VM | vm_network_ifname | no | eth0 for RHEV, ens192 for VMware | | Ethernet interface name to set for the VM | vm_network_conn_name | no | System {{ vm_network_ifname }} | | Ethernet connection name to set for the vm | virt_api_bastion | no | localhost | | Bastion host to use to do API calls to the virtulization provider. | virt_api_insecure | no | False | True/False | Whether the connection to the virtualization provider API is insecure or not, aka using trusted certificates. | virt_network | yes | | Valid networks on the virtualization provider | Virtualization provider network to set for the VM | ovirt_url | If oVirt/RHV | | | oVirt/RHV url for API calls | ovirt_username | If oVirt/RHV | | | oVirt/RHV username for API calls | ovirt_password | If oVirt/RHV | | | oVirt/RHV passwrod for API calls | vsphere_hostname | If vSphere | | | vSphere hostname for API calls | vsphere_username | If vSphere | | | vSphere username for API calls | vsphere_password | If vSphere | | | vSphere password for API calls | vsphere_datacenter | If vSphere | | | vSphere datacenter for API calls. NOTE: attempted to determine this dynamically but could not find a way.

optimize_kernel_scheduler.yml

What is the suggested I/O scheduler to improve disk performance when using Red Hat Enterprise Linux with virtualization?. The following playbook configures noop for the IO queue scheduler kernel parameter for RHEL VMs on VMware infrastructure per How to use the Noop IO Scheduler.

Notes

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.