aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 02093632998a8f78e54a4eefeae5c5d69af41310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Vcenter_matrix
*Shell script that uses and aids ansible*
Use vcenter_matrix to generate yaml and csv lists of all the virtual guests in a set of vcenter hosts.

This script prompts for the username and password to the vcenters. Then it iterates through the list of vcenters in vcenters.txt and fetches the guest name and uuid of just the Linux guests.

### Usage

    cd /etc/ansible/shell/vcenter_matrix
    vi vcenters.txt # add in your vcenter hostnames
    ./generate.sh

# Reference
## Weblinks
1. File descript 10 https://unix.stackexchange.com/questions/107800/using-while-loop-to-ssh-to-multiple-servers
2. Web problem with vcenter api is because of escaped characters in variables https://github.com/ansible/ansible/issues/32477

bgstack15